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 0000000000000000000000000000000000000000..f18bb359b070cc654303ccc30b3a806b926ac4a7 --- /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/\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 0000000000000000000000000000000000000000..127c976a58f6ee6a152c0cd4b115b95922a619b1 --- /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.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 0000000000000000000000000000000000000000..8fcb0d0ee44546cccaf43e2e1b5acdabd843801a --- /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(取别名) 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 0000000000000000000000000000000000000000..e6b0ad19c4aa5e952dcd5a29fe7cabd9390053c6 --- /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