//接收m层数据,注意传入的参数是data的index而非data本身 public void SetData(int dataIndex) { this.data = cardView.GetData(dataIndex); this.DataIndex = dataIndex; UpdateView(); }