方式一: $.post('../Ajax/GoodsAjax.ashx?cmd=getGsList', function (result) { var result = eval('(' + result + ')'); if (result.rbool) { $('#creatLi').html(""); var li = ""; //动态添加商品类别样式 $.each(result.fList, function (f,
DEMO说明一切: // this is the id of the form $("#idForm").submit(function() { var url = "path/to/your/script.php"; // the script where you handle the form input. $.ajax({ type: "POST", url: url, data: $("#idForm").serial