6. Hash によるルーティング URL の Hash (フラグメント識別子)を利用した方法 location.hash hashchange イベント http://localhost:8080/path/to#hoge 7. Hash ( JavaScript でのルートの扱い) location.hash を使う 遷移先ルートの設定 location.hash = 'hoge'; 現在のルートの取得 console.log(location.hash); // -> '#hoge' 8. (補足) location http://localhost:8080/path/to?a=1&b=2#hoge protocol http: host localhost:8080 hostname localhost port 8080 origin http://localhost:8080