js获取路由

location.pathname.slice(location.pathname.substr(1).indexOf('/')+1)

posted @ 2018-08-09 14:43  纳尼呢  阅读(355)  评论(0编辑  收藏  举报