摘要: js获取url let url = window.location.href; console.log(url) // 返回当前页面的路径和文件名,如:/testdemo/test.html let pathname = window.location.pathname; console.log(p 阅读全文
posted @ 2020-12-31 12:00 陨落&新生 阅读(2063) 评论(0) 推荐(0) 编辑