楼主你问的不清不楚: 若是得到本网页的文件名可以用:
function get(str) //从链接地址里提取出本文档名
{
return str.match(/\/([^\?/]*)(\?|$)/)[1];
}
alert(get(location.href));
function get(str) //从链接地址里提取出本文档名
{
return str.match(/\/([^\?/]*)(\?|$)/)[1];
}
alert(get(location.href));
调试欢乐多
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货