1.全局 在浏览器下,this指向window2.函数 this指向window , 'use strict' 严格模式下 为undefined3.对象 this指向对象本身解决 this指向方法:1. 声明一个 that = this2.使用es6的箭头函数3.使用call,apply,bind 改变this指向