javascript - jQuery -> 更改 Window.href

标签 javascript window href

我如何使用 jQuery 将页面重定向到基本页面 + 一些字符串?

具体来说,我需要设置 window.href = 当前页面 without params + 'SomeString';

最佳答案

尝试这样的事情: window.location.href = window.location.pathname + 'SomeString';

关于javascript - jQuery -> 更改 Window.href,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1937672/

相关文章:

javascript - 取消隐藏 css 元素以选择元素值太慢

javascript - 从 JS 获取 shell 脚本

javascript - 在 parse.com js SDK 中使用 .signUp 注销当前用户

html - 使用指定的 href 作为正文文本打开 Instagram Direct Message 的网站链接?

javascript - jQuery - 更改 href 属性

css - href 属性停止具有 css3 动画的文本

javascript - 单击特定的 div 区域时防止 toggleClass

jquery - 调整窗口大小时 move 图像或向上划分?

c# - WPF 窗口在关闭后不释放内存

Python/Tkinter根窗口后台配置