版权声明:本文为博主原创文章,转载表明出处即可,欢迎转载! https://blog.csdn.net/qq_39767955/article/details/82082168
一个form里面有一个table
<form id="PgProjectSearchForm" name="PgProjectSearchForm">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
在JavaScript里面定义一个方法传值
function searcPrjList(){
var data =$("#PgProjectSearchForm").serialize();
$.post(contextPath_js + "/pg/sale/distribProject/SearchPrjList.pfv?queryflag=executing&t=" + Math.random()+objs,data,function(response){
$("#prjListDiv").html(response);
});
}
后台的controller用requestMapping拦截下来即可
@RequestMapping(value = "/SearchPrjList")
public String saveContractInfo(PgContractForm form,Model model,WebRequest request)
{
}
form就是用来接收table里面数据的