본문으로 건너뛰기

bind

Description

지정된 값으로 this 키워드가 설정된 새로운 함수를 생성합니다.

bind: (method: SchedulerCallback, thisArg: any) => SchedulerCallback

Parameters

  • method - (required) function - 바인딩할 함수
  • thisArg - (required) object - 바운드 함수가 호출될 때 this 컨텍스트로 사용될 값

Returns

  • bound_function - (function) - 호출 시 원래 함수에 대해 지정된 this 컨텍스트를 사용하는 새 함수

Example

scheduler.bind(method, thisArg);

Details

이 메서드는 Function.prototype.bind() 함수의 IE8 호환 대안으로 사용됩니다.

Change log

  • 버전 6.0에 추가됨
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.