在 http://community.csdn.net/Expert/PostNew.asp?room=304 页面里:
<script language="javascript">
function get(str) //从链接地址里提取出本文档名
{
return(str.match(/\/([^\?/]*)(\?|$)/)[1]);
}alert(get(window.location.href));
</script>
<script language="javascript">
function get(str) //从链接地址里提取出本文档名
{
return(str.match(/\/([^\?/]*)(\?|$)/)[1]);
}alert(get(window.location.href));
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货