一句话绑定父函数的作用域this

//如何在返回的函数中绑定父函数的作用域this
function bound () {
  return function () {
    console.log(this);
  }.bind(this);
}
 
bound()();

 

posted @ 2014-01-16 13:56  sexy_girl  阅读(126)  评论(0编辑  收藏  举报