|
loadData数据总是第一条。
Model.prototype.output3Render = function(event) {
if (event.value = "0") {
event.html = "<font style='color:#c0c0c0'>已读</font>";
}
if (event.value = "1") {
event.html = "<font style='color:#FA7922'>未读</font>";
}
};
Model.prototype.MsgDataCustomRefresh = function(event) {
var info = {
"@type" : "table",
"rows" : [ {
"id" : 1,
"content" : "sdfewadf",
"state" : 0,
"time" : "2018-01-27"
}, {
"id" : 2,
"content" : "是否",
"state" : 1,
"time" : "2018-01-27"
}, {
"id" : 3,
"content" : "所答非所问",
"state" : 0,
"time" : "2018-01-27"
}, {
"id" : 4,
"content" : "分为二",
"state" : 1,
"time" : "2018-01-27"
} ],
};
console.log(info);
this.comp("MsgData").loadData(info);
};
|
|