摘要: Document 阅读全文
posted @ 2019-08-19 10:23 zhupan 阅读(330) 评论(0) 推荐(0)
摘要: Document 阅读全文
posted @ 2019-08-19 10:22 zhupan 阅读(445) 评论(0) 推荐(0)
摘要: ### this指向问题 1. 普通函数 ```js var name = '张三' function getPersonName() { console.log(this.name) } getPersonName() //张三 //严格模式下 抑制this "use strict"; var name = "张三" function getPersonName() { console.log( 阅读全文
posted @ 2019-08-19 10:20 zhupan 阅读(151) 评论(0) 推荐(0)