본문으로 건너뛰기

bind

Description

호출될 때 this 키워드가 제공된 값으로 설정되는 새 함수를 생성합니다.

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

Parameters

  • method - (필수) function - 대상 함수
  • thisArg - (필수) object - 바운드 함수가 호출될 때 대상 함수에 전달될 this 매개변수의 값

Returns

  • bound_function - (function) - 호출될 때 대상 함수로 전달될 this 키워드를 갖는 새로운 함수

Example

gantt.bind(method, thisArg);

Details

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

Change log

  • 버전 4.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.