bind
Syntax
매개변수
반환값
this.x = 9;
var module = {
x:81,
getX: function() { return this.x; }
}
module.getX();
var retrieveX = module.getX;
retrieveX();
var boundGetX = retrieveX.bind(module);
boundGetX();Summary
Last updated
Was this helpful?