获取表单所有字段 Post
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);