2019-03-11 【JavaScript】現在のURLを取得し、パラメータは除外する コード let url = window.location.href; url = url.replace(location.search , '');