js获取路由

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

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