获取form所有name值
var d = {}; var t = $('form').serializeArray(); t.forEach(function(item, index){ d[item.name] = item.value; }); $.post("a.php",d,function(result){ layer.alert(result,function () { location.reload(); });
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。