|

楼主 |
发表于 2017-5-2 16:43:43
|
显示全部楼层
没有写任何点击事件
Model.prototype.commentDataCustomRefresh = function(event){
var commentData = event.source;
$.ajax({
type: "GET",
url: require.toUrl('./json/commentData.json'),
dataType: 'json',
async: false,//使用同步方式,目前data组件有同步依赖
cache: false,
success: function(data){
commentData.loadData(data);//将返回的数据加载到data组件
},
error: function(){
throw justep.Error.create("加载数据失败");
}
});
};
|
|