aJax实现页面跳转带参数

现在页面上写入一个隐藏框:

<input type="hidden" name="staffid" id="staffid" value="{$staffid}">

然后在执行完之后的页面跳转哪里加上要跳转的参数:

var staffid = $('#staffid').val();
window.location.href = '/gongzi/achievement/index?staffid=' + staffid;
posted @ 2017-09-23 16:13  java转php  阅读(6114)  评论(0)    收藏  举报