获取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();
            });

文章题目:获取form所有name值
文章转载:http://ybzwz.com/article/gpsopd.html