AJAX sent to the background objects with a set of List (rpm)

School = {} var;
school.name = 'Tsinghua';
school.address = "Beijing";
// easyui plug is used herein to obtain the data
var rows = $ ( '# maintainTableId ') datagrid ( 'getSelections. ');
for (var I = 0; I <rows.length; I ++) {
School [ "Students. [" + I + "] .name"] = rows [I] .name;
School [ "Students. [" + I + "] .sex"] = rows [I] .sex;
}

$.ajax({
url : url,
type : 'POST',
dataType : 'json',
data : school,
success : function() {}
})

Refer to the original https://www.cnblogs.com/guofz/p/8849093.html

Guess you like

Origin www.cnblogs.com/aishangyizhihu/p/10963937.html