diff --git "a/04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.11.14.html" "b/04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.11.14.html" new file mode 100644 index 0000000000000000000000000000000000000000..8aed0a9c6c0f433c6cf9940a77af0c267e3995eb --- /dev/null +++ "b/04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.11.14.html" @@ -0,0 +1,28 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.11.16.html" "b/04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.11.16.html" new file mode 100644 index 0000000000000000000000000000000000000000..3ca3d66d915882d0c72b614e5378556aaa1d142f --- /dev/null +++ "b/04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.11.16.html" @@ -0,0 +1,31 @@ + + + + + + + + Document + + + + + + + \ No newline at end of file diff --git "a/04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.11.14-this&\346\255\243\345\210\231.md" "b/04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.11.14-this&\346\255\243\345\210\231.md" new file mode 100644 index 0000000000000000000000000000000000000000..2e2341fbab2710f38bfcc6ab30d36beb9e74338c --- /dev/null +++ "b/04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.11.14-this&\346\255\243\345\210\231.md" @@ -0,0 +1,38 @@ +### this + +this产生在函数执行时 + +默认绑定:默认指向windows + +隐式绑定:谁调用,指向谁 + +显式绑定:call apply bind + +箭头函数本身没有this,里面的this指向的是父级函数中的this + +# 12、正则 + +创建正则 + + var re = /ab+c/; + var re = new RegExp("ab+c"); + +贪婪模式:能多就多 + +非贪婪模式:在正则后加?,能少就少 + +{m}:匹配m次 + +{m,n}:匹配最少m次,最多n次 + +{m,}:匹配最少m次,最多无限次 + +{1,}:1次或者多次   + + +{0,}:0次或多次              * + +{0,1}:0次或者1次          ? + +^非,在开头表示必须以下一个字符开头 + +$必须以上一个字符结尾 diff --git "a/04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.11.16-\346\255\243\345\210\231.md" "b/04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.11.16-\346\255\243\345\210\231.md" new file mode 100644 index 0000000000000000000000000000000000000000..2b4306045810377977d94ad83c8e2771023fc7df --- /dev/null +++ "b/04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.11.16-\346\255\243\345\210\231.md" @@ -0,0 +1,32 @@ +12、正则 + +创建正则 + + var re = /ab+c/; + var re = new RegExp("ab+c"); + +贪婪模式:能多就多 + +非贪婪模式:在正则后加?,能少就少 + +{m}:匹配m次 + +{m,n}:匹配最少m次,最多n次 + +{m,}:匹配最少m次,最多无限次 + +{1,}:1次或者多次   + + +{0,}:0次或多次              * + +{0,1}:0次或者1次          ? + +^非,在开头表示必须以下一个字符开头 + +$必须以上一个字符结尾 + +?=:紧跟着 + +?!:不紧跟着 + +\b:单词边界