private changeData(backData){ this.data_arr=backData["data"]["list"]; if(this.data_arr){ this.list_scroller.refreshVirtualList(); this.list_scroller.itemRenderer = this.renderListItem_icon_list; this.list_scroller.callbackThisObj = this; this.list_scroller.numItems =this.data_arr.length; // this.list_scroller.addSelection(10,true); // this.list_scroller.selectedIndex=0; // this.list_scroller.getChildAt(0).asButton.getController("button").selectedIndex=1; } } this.list_scroller=this.getChild("list_scroller").asList; this.list_scroller.setVirtual(); this.list_scroller.callbackThisObj = this; this.list_scroller.itemRenderer = this.renderListItem_icon_list; this.list_scroller.numItems =this.item_total_num;
标签:arr,scroller,callbackThisObj,数据,list,Glist,刷新,itemRenderer,data From: https://www.cnblogs.com/dt1991/p/16985264.html