e 1 năm trước cách đây
mục cha
commit
0cb1393d4c

+ 1 - 1
vue2.0/vue初阶/14.列表排序.html

@@ -69,7 +69,7 @@
                 */
                 */
                 if(this.sortType) {
                 if(this.sortType) {
                     // 排序
                     // 排序
-                    this.arr.sort((a,b)=>{
+                    this.person.sort((a,b)=>{
                         // if(this.sortType === 1) {
                         // if(this.sortType === 1) {
                         //     console.log("111")
                         //     console.log("111")
                         //     return b.age - a.age;
                         //     return b.age - a.age;