Get the url of the current browser

 let url = window.location.href;
 url = url.split("#")[0];

Guess you like

Origin blog.csdn.net/seimeii/article/details/130802243