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);

05-27 14:41