前台:
var imageCaseList = []; var data = { ID: id, PID: pid, Page: 1}; imageCaseList.push(data); $('#showData').load(url, { querys: imageCaseList });
load的时候参数一定要写成JSON格式的,
直接
$('#showData').load(url, imageCaseList );这样是错误的,后台接受不到的话,对象会为null
后台:
public ActionResult GetList(List<Class> querys) {
}