回答編集履歴

1

JavaScript で動的にURIを書き換える

2016/10/26 08:41

投稿

think49
think49

スコア18166

test CHANGED
@@ -50,4 +50,16 @@
50
50
 
51
51
 
52
52
 
53
+ JavaScript で動的にURIを書き換えるなら、
54
+
55
+
56
+
57
+ ```JavaScript
58
+
59
+ location.href = '/' + 'ja' + location.pathname.replace(/^[^\u002F]+/, '') + location.search + location.hash;
60
+
61
+ ```
62
+
63
+
64
+
53
65
  Re: KotaWatanabe33 さん