获取form所有name值
更新:HHH   时间:2023-1-7


   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();
            });
返回web开发教程...