@RequestMapping(value = "/quotaPage") // , method = RequestMethod.GET名额分配
@ResponseBody //注意这个注解,想要返回json数据 必须需要!
public int quotaPage( ){...}
$.ajax({
url: SPICA_MODULE + "/class/quotaPage",
type: 'POST',
// data: {"classType": classType},
traditional: true,
cache: false,
async: false,
dataType: 'JSON',
processData: false,
contentType: false,
success: function (res) {
debugger
}
,error: function (xhr, status, info) {
var aa = xhr.responseText;
debugger
}
});
$.getJSON(SPICA_MODULE + '/class/quotaAllocationPage/?classType='+classType, function (res) { //params,
debugger
res = res;
$('#id_main').html(template('course-setting-data-list', {page: data})); //
});