标签:
var jane = { hoho: ‘Jane‘, describe: function() { return ‘Person named ‘ + this.hoho; } }; var fun = jane.describe; // this 是全局window console.log(fun()); var func2 = jane.describe.bind(jane); //this是jane 即作用域绑定 console.log(func2());
标签:
原文地址:http://www.cnblogs.com/lcw5945/p/4330634.html