window.location.pathname
比如:
/windows/location/page.html
我想得到“windows”,请问用正则表达式怎么写?
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]