https://seanacnet.com/js/url-location-pathname/
[JS]Javascript 取得網址目前頁面路徑 location pathname