javascript能否得到当前叶面的url sUrl = window.location.hrefsUrl = sUrl.substr(sUrl.lastIndexOf("/") + 1)alert(sUrl) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 sUrl = window.location.hrefsUrl = sUrl.substr(sUrl.lastIndexOf("/") + 1)alert(sUrl) window.location.pathname url的路径部分另外的还有:window.location.hostname 域名window.location.href 完整的urlwindow.location.search url中?之后的信息window.location.port url的端口号(默认为80)window.location.host 客户端IP js或JQ控制显示隐藏 ExtJS的问题 jquery 中的simpleTree 请高手指教!!!! 进度条前进与后退 关于下拉列表的问题 如何把.html?id=111这个值传递给一个页面 弱弱的问一个jscript的问题,帮忙哈 定时刷新marquee 图像随滚动条的上下拉动而上下移动脚本 能通过javascript读取ie浏览器的产品id号吗?100分等你拿! wshshell.sendkeys好像把字符都送到缓冲区里面了,有没有立即让他生效的函数? 怎么从一个框架页中的一个框架跳转到(不是弹出新窗口)一个不含框架的页
sUrl = sUrl.substr(sUrl.lastIndexOf("/") + 1)
alert(sUrl)
window.location.hostname 域名
window.location.href 完整的url
window.location.search url中?之后的信息
window.location.port url的端口号(默认为80)
window.location.host 客户端IP