alert(this.location.pathname.match(/(?!.*[\/\\])[^\.\?\#]*/));//取得index
alert(this.location.pathname.match(/(?!.*[\/\\])[^\?\#]*/));//取得index.asp
正则表达式获取网页名称
最新推荐文章于 2023-04-28 11:57:29 发布
alert(this.location.pathname.match(/(?!.*[\/\\])[^\.\?\#]*/));//取得index
alert(this.location.pathname.match(/(?!.*[\/\\])[^\?\#]*/));//取得index.asp