代码如下:
<script language="javascript"> //用js获取当前页面的url地址 //www.jb200.com var currentPageUrl = ""; if (typeof this.href === "undefined") { currentPageUrl = document.location.toString().toLowerCase(); } else { currentPageUrl = this.href.toString().toLowerCase(); } </script>