怎么用javascript取得当前页面的url路径? <script>alert (window.location.href)</script> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script>alert("1: " + window.location.href);alert("2: " + window.location);alert("3: " + location.href);alert("4: " + parent.location.href);alert("5: " + top.location.href);alert("6: " + document.location.href);</script> 做Web前端开发,需要知道哪些? 求正则 为什么! 一个取页面上所有图片的问题,请教 总结下json数据格式和大家分享 javascript如何实现页间传值 vbs文件可以脱离浏览器独立运行,难道js文件就不能独立运行吗?是不是javascript必须依存于浏览器才能运行呀? 帮我看看这段JS代码有什么错误吗 请问 如何修改文件输入框的值 怎样让javascript显示出的时间选择菜单显示在网页的最前? form提交问题?难啊!! onclick为何不响应
alert("1: " + window.location.href);
alert("2: " + window.location);
alert("3: " + location.href);
alert("4: " + parent.location.href);
alert("5: " + top.location.href);
alert("6: " + document.location.href);
</script>