var params = $(".layui-form").serializeArray();
var values = {};
for (x in params) {
values[params[x].name] = params[x].value;
}
values[‘page‘] = "1";
values[‘limit‘] = "6";
var idata = JSON.stringify(values);
idata = eval("(" + idata + ")");
alert(idata);
原文地址:https://www.cnblogs.com/future/p/11286835.html
时间: 2024-10-13 07:11:33