//获取页面文件名
function GetPageName()
{
var url=window.location.href;//获取完整URL
var tmp= new Array();//临时变量,保存分割字符串
tmp=url.split("/");//按照"/"分割
var pp = tmp[tmp.length-1];//获取最后一部分,即文件名和参数
tmp=pp.split("?");//把参数和文件名分割开
return tmp[0];
}
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn