From 69277612b06b2036ee25d3dd91e1866567d45e05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=8E=AE=E5=96=86?= Date: Tue, 25 Oct 2022 23:23:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E6=AC=A1=E4=BD=9C?= =?UTF-8?q?=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.10.24.html" | 63 +++++++++++++++++++ .../2022.10.24-\345\257\271\350\261\241.md" | 42 +++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 "04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.10.24.html" create mode 100644 "04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.10.24-\345\257\271\350\261\241.md" diff --git "a/04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.10.24.html" "b/04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.10.24.html" new file mode 100644 index 0000000..f18bb35 --- /dev/null +++ "b/04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.10.24.html" @@ -0,0 +1,63 @@ + + + + + + + + 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.10.24-\345\257\271\350\261\241.md" "b/04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.10.24-\345\257\271\350\261\241.md" new file mode 100644 index 0000000..8fcb0d0 --- /dev/null +++ "b/04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.10.24-\345\257\271\350\261\241.md" @@ -0,0 +1,42 @@ +6、对象 + +## 6.1 定义对象 + +字面量 + + var obj = { +     name:value; +     'String':value; + } + +构造函数 + + function GetName() { +     this.name = values; +     this.age = values; + } + +工厂模式(设计模式) + + function GetValues(name,age) { +     var that = { } +     that.name = name +     that.age = age +     return that +    } + +生成对象 + +var obj = new obj(); + +## 6.2 增删查 + +查:obj.name + +增:obj.原来obj中没有的属性,相当于将该属性添加到对象obj中 + +删:delete  一般删之前要对该属性进行判断 + +## 6.3 对象解构 + +let{name:personName, age:personAge} = obj(取别名) -- Gitee From a1255448a8898d74c8d91e798d5cce1c0acdbabe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=8E=AE=E5=96=86?= Date: Thu, 27 Oct 2022 12:29:47 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E6=AC=A1=E4=BD=9C?= =?UTF-8?q?=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.10.26.html" | 155 ++++++++++++++++++ ...6-\345\214\205\350\243\205\347\261\273.md" | 34 ++++ 2 files changed, 189 insertions(+) create mode 100644 "04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.10.26.html" create mode 100644 "04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.10.26-\345\214\205\350\243\205\347\261\273.md" diff --git "a/04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.10.26.html" "b/04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.10.26.html" new file mode 100644 index 0000000..127c976 --- /dev/null +++ "b/04\351\203\221\347\216\256\345\226\206/\344\275\234\344\270\232/2022.10.26.html" @@ -0,0 +1,155 @@ + + + + + + + + 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.10.26-\345\214\205\350\243\205\347\261\273.md" "b/04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.10.26-\345\214\205\350\243\205\347\261\273.md" new file mode 100644 index 0000000..e6b0ad1 --- /dev/null +++ "b/04\351\203\221\347\216\256\345\226\206/\347\254\224\350\256\260/2022.10.26-\345\214\205\350\243\205\347\261\273.md" @@ -0,0 +1,34 @@ +6、对象 + +## 6.1 定义对象 + +字面量 + + var obj = { +     name:value; +     'String':value; + } + +构造函数 + + function GetName() { +     this.name = values; +     this.age = values; + } + +工厂模式(设计模式) + + function GetValues(name,age) { +     var that = { } +     that.name = name +     that.age = age +     return that +    } + +生成对象 + +var obj = new obj(); + +## 6.2 增删查 + +查:obj.name -- Gitee