你应该这个
var result= mini.encode(text);
var data = result.data;
var total = result.total;
grid.setData(data);
grid.setTotalCount(total);作者: mfanworld 时间: 2013-12-5 16:17:48
factory 发表于 2013-12-5 16:12
setData()需要的是数组
你应该这个
不好用
success : function(text) {
var result= mini.encode(text);
var data = result.data;
var total = result.total;
grid.setData(data);
grid.setTotalCount(total);