java后台如何接收formserialize传来的数据,怎么request.getParameter()值都为null
代码如下,望高手帮忙。$(document).ready(function(){$("#myForm").ajaxForm(function(){$(this).ajax...
代码如下,望高手帮忙。
$(document).ready(function(){
$("#myForm").ajaxForm(function(){
$(this).ajaxSubmit(options);
});
});
var params = $('#myForm').formSerialize();
params = decodeURIComponent(params, true)
var options = {
url:'${pageContext.request.contextPath}/main/pinglun?id=${news.id}',
data:params,
type:'post',
dataType:'text',
success: function () {alert("提交成功");},
timeout:3000
}; 展开
$(document).ready(function(){
$("#myForm").ajaxForm(function(){
$(this).ajaxSubmit(options);
});
});
var params = $('#myForm').formSerialize();
params = decodeURIComponent(params, true)
var options = {
url:'${pageContext.request.contextPath}/main/pinglun?id=${news.id}',
data:params,
type:'post',
dataType:'text',
success: function () {alert("提交成功");},
timeout:3000
}; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询