JS 从中提取文件夹window.location.pathname路径名(示例代码)
* example: google.com/reader/view/folder = /reader* example: google.com/readerfolder = /* example: google.comfolder = ''var folder = window.location.pathname.substring(window.location.pathname.indexOf('/', 0), window.location.pathname.indexOf...
转载
2021-12-25 12:13:45 ·
2242 阅读 ·
0 评论