刘刚博客

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

posted @ 2019-08-02 09:55  Future.Net博客  阅读(507)  评论(0编辑  收藏  举报