后台代码:
@RequestMapping(value="/showGeneralData.action")
public String deldelByTableName(String tableName, ModelMap model) {
model.addAttribute("tableName",tableName);
return "general/show-with-config";
}
jsp页面代码:
<input type="hidden" name="tableName" id="tableName" value="${tableName}"/>
js中的取值方式
var tableName = $('#tableName').val();
请求传值方式
http://localhost:8080/rsbi/general_edit/getTableConfig.action?tableName=test