We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a1f23f commit fa2cbebCopy full SHA for fa2cbeb
currentPageUrl.js
@@ -0,0 +1,11 @@
1
+/**
2
+ * @description 获取当前路径
3
+ * @author 未知
4
+ */
5
+
6
+var currentPageUrl = "";
7
+if (typeof this.href === "undefined") {
8
+ currentPageUrl = document.location.toString().toLowerCase();
9
+}else {
10
+ currentPageUrl = this.href.toString().toLowerCase();
11
+}
0 commit comments