フラグメント識別子を取得する
フラグメント識別子を取得する方法
/icons/javascript.icon
URL.hashを使う
code:js
const url = new URL('https://scrapbox.io/takker/フラグメント識別子を取得する#5fc35b416e6c98001e401c2b');
const fragment = url.hash;
console.log(fragment); //#5fc35b416e6c98001e401c2b/
Reference
URL.hash - Web API | MDN
#2020-11-29 17:27:59