【发布时间】:2018-09-19 01:38:27
【问题描述】:
在 jsgrid 中通过 ajax 进行更新后,该行返回空白
controller: {
loadData: function(filter) {
var data = $.Deferred();
$.ajax({
type: "GET",
contentType: "application/json; charset=utf-8",
url: "/app/Play/",
dataType: "json"
}).done(function(response) {
data.resolve(response);
});
return data.promise();
},
updateItem: function(item) {
return $.ajax({
type: "POST",
url: "/app/Play/change.php",
data: item,
});
},
}
在url更新的返回:/app/Play/change.php
我以普通 json 格式返回更新后的记录数据,与加载中使用的初始 json 相同
【问题讨论】:
-
你能做一些有用的小提琴吗?
标签: jsgrid