- 博客(1)
- 收藏
- 关注
原创 javascript this指向总结
javascript this指向总结 1.单独的this,指向的是window这个对象 alert(this) // this -> window 2.全局函数中的this function demo() { // ‘use strict’; 严格模式 alert(this); // this -> window } demo(); 在严格模式下,this是undefined. 3...
2019-08-19 14:43:00
913
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人