tianyunperfect 3 năm trước cách đây
mục cha
commit
b553158754
2 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 7 0
      tmp/monkey/util.js
  2. 1 0
      tmp/tmp.js

+ 7 - 0
tmp/monkey/util.js

@@ -177,3 +177,10 @@ function addJQ() {
         }
     }, 200)
 }
+
+function addLink(domSelector, link_str, linkUrl) {
+    const eleScript = document.createElement("a");
+    eleScript.innerHTML = link_str.replaceAll(" ", " ");
+    eleScript.href = linkUrl;
+    document.querySelector(domSelector).appendChild(eleScript);
+}

+ 1 - 0
tmp/tmp.js

@@ -0,0 +1 @@
+console.log(" 123  123".replaceAll(" ", " "));