求:JS获取当前URL并替换前面、然后输出【或者只获取.com后面的URL】
最好是只获取后面的一段
如 bbs.csdn.net/378244.html
之获取 368244.html
像这种只能在PHP页面才生效,
<meta http-equiv="mobile-agent" content="format=xhtml;url=http://m.csdn.com{eval echo $_SERVER['REQUEST_URI'];}">
我网站文件都有事html的页面,所以求JS的代码 3Q