Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jQuery を使用してページをベース ページ + 文字列にリダイレクトするにはどうすればよいですか?
具体的には、window.href = params + 'SomeString';なしの現在のページを設定する必要があります。
次のようなことを試してください: window.location.href = window.location.pathname + 'SomeString';
window.location.href = window.location.pathname + 'SomeString';
var loc = window.location + ''; window.href = loc.replace('(\?(.+))','') + str;