- // Get current page url using JavaScript
- var currentPageUrl = "";
- if (typeof this.href === "undefined") {
- currentPageUrl = document.location.toString().toLowerCase();
- }
- else {
- currentPageUrl = this.href.toString().toLowerCase();
- }
- //该片段来自于http://www.codesnippet.cn/detail/120920135820.html
来源: http://www.codesnippet.cn/detail/120920135820.html