|
本帖最后由 lilikilki 于 2017-3-12 15:55 编辑
点击列表页传参进入详情页,数据传过来了,但是详情页的数据组件的数据加载不出来,明明该写的都写了求助啊,弄了好久不知道到底哪里出了问题?
发送页
Model.prototype.listClick = function(event){
var experiID = this.comp("experiData").getValue("eid");
var eName = this.comp("experiData").getValue("ename");
justep.Shell.showPage("experiContent",{"eID" : experiID, "eName" : eName});
};
接收页
Model.prototype.modelParamsReceive = function(event){
if (this.params !== undefined) {
if (this.experiID != this.params.experiID) {
this.eName = this.params.eName;
this.comp("input1").val(this.eName);
}
}
};
Model.prototype.experiDataCustomRefresh = function(event){
var url = require.toUrl("./json/experiData.json");
$.ajaxSettings.async = false;
$.getJSON(url, function(data) {
event.source.loadData(data);
});
}; |
|