在gridSelect的option中data关联的data的onAfterRefresh事件中调用newData

如下:

Model.prototype.data1AfterRefresh = function(event){
var data = this.comp("data1");
data.newData({"index":0,"defaultValues":[{fName:"",fCode:""}]});
};

本文由WeX5君整理,WeX5一款开源免费的html5开发工具H5 App开发就用WeX5!

阅读其他app 开发相关文章:http://doc.wex5.com/?p=3443