From 06a15638ac02e5459af8dcff45f849c4437f7a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BE=B7=E6=A3=AE?= <1500225483@qq.com> Date: Wed, 16 Nov 2022 03:36:53 +0000 Subject: [PATCH 1/7] =?UTF-8?q?=E6=96=B0=E5=BB=BA=202022-11-16-=E6=AD=A3?= =?UTF-8?q?=E5=88=99=E5=92=8C=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "47\346\233\276\345\276\267\346\243\256/2022-11-16-\346\255\243\345\210\231\345\222\214\345\274\202\345\270\270/.keep" diff --git "a/47\346\233\276\345\276\267\346\243\256/2022-11-16-\346\255\243\345\210\231\345\222\214\345\274\202\345\270\270/.keep" "b/47\346\233\276\345\276\267\346\243\256/2022-11-16-\346\255\243\345\210\231\345\222\214\345\274\202\345\270\270/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 0c1c82aa249eb48465056083711786645b2fd150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BE=B7=E6=A3=AE?= <1500225483@qq.com> Date: Wed, 16 Nov 2022 03:37:21 +0000 Subject: [PATCH 2/7] =?UTF-8?q?=E6=9B=BE=E5=BE=B7=E6=A3=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 曾德森 <1500225483@qq.com> --- .../\347\254\224\350\256\260.md" | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 "47\346\233\276\345\276\267\346\243\256/2022-11-16-\346\255\243\345\210\231\345\222\214\345\274\202\345\270\270/\347\254\224\350\256\260.md" diff --git "a/47\346\233\276\345\276\267\346\243\256/2022-11-16-\346\255\243\345\210\231\345\222\214\345\274\202\345\270\270/\347\254\224\350\256\260.md" "b/47\346\233\276\345\276\267\346\243\256/2022-11-16-\346\255\243\345\210\231\345\222\214\345\274\202\345\270\270/\347\254\224\350\256\260.md" new file mode 100644 index 0000000..34f245b --- /dev/null +++ "b/47\346\233\276\345\276\267\346\243\256/2022-11-16-\346\255\243\345\210\231\345\222\214\345\274\202\345\270\270/\347\254\224\350\256\260.md" @@ -0,0 +1,89 @@ +## 正则,异常 + +`console.log(/(\d{4})-(/d{2})-(/d{2})/.exec('2022-11-16'))` + +`// 2022-11-16 2022 11 16` + +​ `$1 $2 $3` + +`console.log(RegExp.$1);` //2022 捕获数组 + +`console.log(RegExp.$2);` //11 + +`console.log(RegExp.$3);` //16 + + + +//使用replace分组捕获 + +//引用子表达式的内容 + +`console.log(/(aabc)(ccab)\1,\2/.exec('aabcccabaabcccab'));` + +`//1:aabc 2:ccab` + +//反捕获:?::将捕获到的子表达式隐藏 + +`console.log(/(?:aabc)(ccba)/.exec('aabcccabaabcccab'));` + +`//1: 2:ccab` + +// ?: :紧跟着 ?!:不紧跟着 ?::反捕获 ??:非贪婪(有0取0没0取1) + +//查紧跟着c后面的b + +`console.log(/b(?=c)/.exec(‘abc’));` //查b(由c紧跟着) + +//查a(后面跟的不是b) + +`console.log(/a(?!b)/.exec('abca'));` + + + +#### 异常 + +//异常处理 + +`try{` //尝试捕获异常,里面放的式可能出错的代码 + +​ `const fn=function(){` + +​ `const data=null;` + +​ `return data;` + +`};` + +​ `const data=fn();` + +`};` + + + +//包装类:null undefined 没有包装类 + + `console.log(data.name);` //报错 + + `console.log('try');` + + + +`catch(error){` + +​ `console.log(error.message);` //对捕获到的错误进行一些处理 + +​ `console.log('catch')` + +`}` + + + +`finally{` + +​ `console.log('this is finally');` //不管有没有捕获错误,等会执行finally中的代码 + +`}` + + + +//try 每次只能捕获一个异常,报错之后的代码中止执行 \ No newline at end of file -- Gitee From d6b8e61caa9b26ae6c9cf6ba055387f27d3e1ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BE=B7=E6=A3=AE?= <1500225483@qq.com> Date: Thu, 17 Nov 2022 09:36:36 +0000 Subject: [PATCH 3/7] =?UTF-8?q?=E6=96=B0=E5=BB=BA=202022-11-17-=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8=E5=AF=B9=E8=B1=A1=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/.keep" diff --git "a/47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/.keep" "b/47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 98fd92f1830943fcd24606250986741c5357a74b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BE=B7=E6=A3=AE?= <1500225483@qq.com> Date: Thu, 17 Nov 2022 09:37:18 +0000 Subject: [PATCH 4/7] =?UTF-8?q?=E6=9B=BE=E5=BE=B7=E6=A3=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 曾德森 <1500225483@qq.com> --- .../\344\275\234\344\270\232.html" | 124 ++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 "47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\344\275\234\344\270\232.html" diff --git "a/47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\344\275\234\344\270\232.html" "b/47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\344\275\234\344\270\232.html" new file mode 100644 index 0000000..14750d8 --- /dev/null +++ "b/47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\344\275\234\344\270\232.html" @@ -0,0 +1,124 @@ + + + + + + + Document + + --> + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
郑玮喆庄云廖治先郑文源戴俊锋陈昊童谢金金占志新张淑芳刘永潘廖柏成
郑宗帅李韦峰吴欣燕陈梅香陈立智袁贵森赵浩敏林世涛罗启恒卢国建黄柱菘
陈鹏张耀仁陈华伟张正豪韦仲晓黄富贵陆建锋曾德森吴文龙陆利群黄雄
王世财张先杰胡基耀马鑫涛李涛杨凌翔罗此东唐皓颖白婉婷
+ + + \ No newline at end of file -- Gitee From 01640dbd341baebe0f3ae21e6406ae9124ca467b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BE=B7=E6=A3=AE?= <1500225483@qq.com> Date: Fri, 18 Nov 2022 01:25:55 +0000 Subject: [PATCH 5/7] =?UTF-8?q?=E6=9B=BE=E5=BE=B7=E6=A3=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 曾德森 <1500225483@qq.com> --- .../\347\254\224\350\256\260.md" | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 "47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\347\254\224\350\256\260.md" diff --git "a/47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\347\254\224\350\256\260.md" "b/47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\347\254\224\350\256\260.md" new file mode 100644 index 0000000..2249f42 --- /dev/null +++ "b/47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\347\254\224\350\256\260.md" @@ -0,0 +1,62 @@ +### 浏览器对象模型(Browser object Model) + +//弹窗输入 + +`window.prompt('请输入')` + +//弹窗 + +window.alert('警告') + +`//确认框:点击确认返回true,取消返回flase` + +`var result =window.confirm('确定取消吗?');` + +​ `if(result){` + +​ `alert('痛失600w');` + +`}else(` + +​ `alert('成功躲过骗局');` + +`)` + + + +//定时器:seTimeout():在设定的毫秒数后调用函数或计算表达式 + +//HTMLcollection 数组 + +​ `var img=document.getElementsByTagName('img')[0];` + +​ `const imgArr=['图片','图片'];` + +​ `var count=0;` + + + +#### 定时器 + +setlnterval(); + +语法 + +`setInterval(code,millisec,lang)` + +//设定时器,3秒后出结果 + +​ `st=setinterval(fn,3000);` + +setTimeout() + +语法 + +setTimeout(code,millisec,lang) + +| 参数 | 描述 | +| -------- | --------------------------------------------------- | +| code | 必需。要调用的函数后要执行的javaScript代码串 | +| millisec | 必需。在执行代码前需要等待的毫秒数 | +| lang | 可选。脚本语言可以是:JScript\|VBScript\|JavaScript | + -- Gitee From 7e01478e31cdc046a366de83205e5ebe2c35d165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BE=B7=E6=A3=AE?= <1500225483@qq.com> Date: Fri, 18 Nov 2022 01:31:40 +0000 Subject: [PATCH 6/7] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=2047?= =?UTF-8?q?=E6=9B=BE=E5=BE=B7=E6=A3=AE/2022-11-17-=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E5=AF=B9=E8=B1=A1=E6=A8=A1=E5=9E=8B/=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232.html" | 124 ------------------ 1 file changed, 124 deletions(-) delete mode 100644 "47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\344\275\234\344\270\232.html" diff --git "a/47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\344\275\234\344\270\232.html" "b/47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\344\275\234\344\270\232.html" deleted file mode 100644 index 14750d8..0000000 --- "a/47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\344\275\234\344\270\232.html" +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - Document - - --> - - - -
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
郑玮喆庄云廖治先郑文源戴俊锋陈昊童谢金金占志新张淑芳刘永潘廖柏成
郑宗帅李韦峰吴欣燕陈梅香陈立智袁贵森赵浩敏林世涛罗启恒卢国建黄柱菘
陈鹏张耀仁陈华伟张正豪韦仲晓黄富贵陆建锋曾德森吴文龙陆利群黄雄
王世财张先杰胡基耀马鑫涛李涛杨凌翔罗此东唐皓颖白婉婷
- - - \ No newline at end of file -- Gitee From 350180f100ff776e5fd83dd0af291303d09dd061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BE=B7=E6=A3=AE?= <1500225483@qq.com> Date: Fri, 18 Nov 2022 01:32:02 +0000 Subject: [PATCH 7/7] =?UTF-8?q?=E6=9B=BE=E5=BE=B7=E6=A3=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 曾德森 <1500225483@qq.com> --- .../\344\275\234\344\270\232.html" | 124 ++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 "47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\344\275\234\344\270\232.html" diff --git "a/47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\344\275\234\344\270\232.html" "b/47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\344\275\234\344\270\232.html" new file mode 100644 index 0000000..d2cb349 --- /dev/null +++ "b/47\346\233\276\345\276\267\346\243\256/2022-11-17-\346\265\217\350\247\210\345\231\250\345\257\271\350\261\241\346\250\241\345\236\213/\344\275\234\344\270\232.html" @@ -0,0 +1,124 @@ + + + + + + + Document + + --> + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
郑玮喆庄云廖治先郑文源戴俊锋陈昊童谢金金占志新张淑芳刘永潘廖柏成
郑宗帅李韦峰吴欣燕陈梅香陈立智袁贵森赵浩敏林世涛罗启恒卢国建黄柱菘
陈鹏张耀仁陈华伟张正豪韦仲晓黄富贵陆建锋曾德森吴文龙陆利群黄雄
王世财张先杰胡基耀马鑫涛李涛杨凌翔罗此东唐皓颖白婉婷
+ + + \ No newline at end of file -- Gitee