返回当前 URL。
使用window.location.href获取当前 URL。
window.location.href
const currentURL = () => window.location.href; // currentUrl() -> 'https://google.com'
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8