2019年3月10日

摘要: 1 import('/page/index.vue')//等于const Index = function a(){return import('/page/index.vue')} 4 5 js高级之this是谁? 6 this本质上就是调用了就指向谁,this在指向谁有以下4种情况: 7 ---------------------------------------------... 阅读全文
posted @ 2019-03-10 23:43 俊小白jxb 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1 function fn() { 2 return this; 3 } 4 console.log(fn()); //控制台输出的是window 5 6 var a = new fn(); 7 console.log(a); //控制台输出的是fn() 8 ---------------------------------... 阅读全文
posted @ 2019-03-10 22:44 俊小白jxb 阅读(83) 评论(0) 推荐(0) 编辑

导航