From e4764c892cb611afcae3ee838c7fd3cfd11d646e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=8E=AE=E5=96=86?= Date: Tue, 15 Nov 2022 23:14:20 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=AC=AC=E5=8D=81=E5=9B=9B=E6=AC=A1?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232/2022.11.14.html" | 28 ++++++++++++++ ...22.11.14-this&\346\255\243\345\210\231.md" | 38 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 "04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.11.14.html" create mode 100644 "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" 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 0000000..8aed0a9 --- /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/\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 0000000..2e2341f --- /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次          ? + +^非,在开头表示必须以下一个字符开头 + +$必须以上一个字符结尾 -- Gitee From 233e4b61eb65cbdc55cba559f2ee898c89b122df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=8E=AE=E5=96=86?= Date: Thu, 17 Nov 2022 12:59:52 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=AC=AC=E5=8D=81=E4=BA=94=E6=AC=A1?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232/2022.11.16.html" | 31 ++++++++++++++++++ .../2022.11.16-\346\255\243\345\210\231.md" | 32 +++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 "04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.11.16.html" create mode 100644 "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" 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 0000000..3ca3d66 --- /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.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 0000000..2b43060 --- /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:单词边界 -- Gitee