网站建设资讯

NEWS

网站建设资讯

获取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值
URL地址:http://njwzjz.com/article/gpsopd.html