首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

JQUERY POST()方法传参后台获取有关问题

2012-03-09 
JQUERY POST()方法传参后台获取问题JScript codefunction showMen(id ,branch,wherestation){var params

JQUERY POST()方法传参后台获取问题

JScript code
function showMen(id ,branch,wherestation){                       var params = {"wherestation2":wherestation,"branch2":branch};                           // alert(params)          //document.write(params.wherestation2);             //document.write(params.branch2);         $.post("ajaxRequest.action",params,function(html){                //alert(html);                $("#men"+id).html(html);        });        }

这样在 ACTION 类里 怎么获得 params 传来的值

[解决办法]
你可以定义两个同名属性试试
记得写上get/set方法

热点排行