var grid = mini.get("datagrid1");
function updateRow() {
var form = new mini.Form("editForm1");
var o = form.getData();
var a = grid.getData();
grid.loading("保存中,请稍后......");
var json = mini.encode([o]);
var json1 = mini.encode([a]);
$.ajax({
url: "../data/AjaxService.aspx?method=phajlr",
data: { data: json, dat: json1 },
success: function (text) {
var data2 = mini.decode(text);
alert(data2);
grid.setData(data2,false);
},
error: function (jqXHR, textStatus, errorThrown) {
alert(jqXHR.responseText);
}
});
} 作者: dforce 时间: 2015-6-16 13:59:06