jquery ajax(实现单独提交某个form)
function submitTaskScore(formid) {//formid表示的是表单的id $.ajax({ type:"post", url:"companyAndDistributeAction!scoreTask",//后台处理程序 data:$(formid).serialize(), success: function(){ document.getElementById("hjzggContent").innerHTML="<center><h1>评论成功!</h1>
</center> <a href='allFinishedTask'>返回</a>"; }, error: function(){ alert("评论失败!"); } }); }
本文来自博客园,作者:hjzqyx,转载请注明原文链接:https://www.cnblogs.com/hujunzheng/p/4780575.html