From 02e2c412132cf5ac487ad931b61ba25b0d083249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E9=9B=84?= <3218770186@qq.com> Date: Mon, 24 Oct 2022 03:49:09 +0000 Subject: [PATCH 1/4] =?UTF-8?q?=E6=96=B0=E5=BB=BA=2010.21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "30\351\273\204\351\233\204/10.21/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "30\351\273\204\351\233\204/10.21/.keep" diff --git "a/30\351\273\204\351\233\204/10.21/.keep" "b/30\351\273\204\351\233\204/10.21/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 617b5aa6deee4764d6defda5369b40bca94b01bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E9=9B=84?= <3218770186@qq.com> Date: Mon, 24 Oct 2022 03:49:43 +0000 Subject: [PATCH 2/4] 30 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄雄 <3218770186@qq.com> --- .../10.21/\345\207\275\346\225\260.md" | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 "30\351\273\204\351\233\204/10.21/\345\207\275\346\225\260.md" diff --git "a/30\351\273\204\351\233\204/10.21/\345\207\275\346\225\260.md" "b/30\351\273\204\351\233\204/10.21/\345\207\275\346\225\260.md" new file mode 100644 index 0000000..3260589 --- /dev/null +++ "b/30\351\273\204\351\233\204/10.21/\345\207\275\346\225\260.md" @@ -0,0 +1,93 @@ +# 函数 + +定义函数: + + 1、 带参(形参) + + `function fn(A){` + + `console.log(这是一个无参+A)` + +`}` + + `var a=4;` + + `fn(a);` + +//...args:剩余运算符,将剩下的参数都放进来args数组中 + + `function fn(A,B...args)` + +// 匿名函数:function(){} + +//箭头行数:var aa=(形参列表)=>{} + +对象:类(人类,鱼类,鸡类) 万物对象 + +//字面量表达方式创建对象 + + `var obj={` + + `name='小明'` + + `age=18` + + `fn:function(){` + +`console.log('我叫小明')}` + +`console.log(ojb.fn())` + +`}` + +### 对象 + + + +`var obj={` + + `name:'小明' {firstname'小'}` + + `{lastname'明'}` + + `age=18` + +`}` + + + +#### 查: + + `console.log(obj.name);` + + `console.log(obj.age);` + + `conole.log (obj['firstname'] ['lastname']);` + +#### 增:obj: 原来obj中没有的属性,相当于将该属性添加到对象obj中 + +`obj.gender='男'` + +`console.log (obj)` + +删:delete 一般删除之前要对该属性进行判断 + + `delete obj.age` + + `console.log(obj);` + + + +构造函数 =new 对象 + + `var obj =new getname(c)` + + `console,log(obj.age);` + +`function getname(){` + + `this.name='小明'` + + `this。age=18;` + +`}` \ No newline at end of file -- Gitee From 611487e9a6e1f0557ffecdb66243ab88058bb7da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E9=9B=84?= <3218770186@qq.com> Date: Mon, 24 Oct 2022 04:03:40 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=E6=96=B0=E5=BB=BA=2010.22?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "30\351\273\204\351\233\204/10.22/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "30\351\273\204\351\233\204/10.22/.keep" diff --git "a/30\351\273\204\351\233\204/10.22/.keep" "b/30\351\273\204\351\233\204/10.22/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From e53be95f8a26624c75b50169fe863cca652894bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E9=9B=84?= <3218770186@qq.com> Date: Mon, 24 Oct 2022 04:04:17 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=E9=BB=84=E9=9B=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄雄 <3218770186@qq.com> --- ...\345\222\214\345\257\271\350\261\241.html" | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 "30\351\273\204\351\233\204/10.22/2022-10-21\347\256\255\345\244\264\345\207\275\346\225\260\345\222\214\345\257\271\350\261\241.html" diff --git "a/30\351\273\204\351\233\204/10.22/2022-10-21\347\256\255\345\244\264\345\207\275\346\225\260\345\222\214\345\257\271\350\261\241.html" "b/30\351\273\204\351\233\204/10.22/2022-10-21\347\256\255\345\244\264\345\207\275\346\225\260\345\222\214\345\257\271\350\261\241.html" new file mode 100644 index 0000000..b99334c --- /dev/null +++ "b/30\351\273\204\351\233\204/10.22/2022-10-21\347\256\255\345\244\264\345\207\275\346\225\260\345\222\214\345\257\271\350\261\241.html" @@ -0,0 +1,63 @@ + + +
+ + + +