aJax实现页面跳转带参数
现在页面上写入一个隐藏框:
<input type="hidden" name="staffid" id="staffid" value="{$staffid}">
然后在执行完之后的页面跳转哪里加上要跳转的参数:
var staffid = $('#staffid').val();
window.location.href = '/gongzi/achievement/index?staffid=' + staffid;
现在页面上写入一个隐藏框:
<input type="hidden" name="staffid" id="staffid" value="{$staffid}">
然后在执行完之后的页面跳转哪里加上要跳转的参数:
var staffid = $('#staffid').val();
window.location.href = '/gongzi/achievement/index?staffid=' + staffid;