首页 > 编程语言 > 详细

Javascript Bind

时间:2017-02-09 15:41:49      阅读:234      评论:0      收藏:0      [点我收藏+]

Javascript Bind

  The bind() method creates a new function that, when called, has its this keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called.

  技术分享

  A bound function may also be constructed using the new operator. The provided this value is ignored, while prepended arguments are provided to the emulated function.

  示例

  技术分享

参考:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind

Javascript Bind

原文:http://www.cnblogs.com/tekkaman/p/6382218.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!