Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2016년 9월.
handler.apply() 메서드는 함수 호출에 대한 트랩입니다.
다음 매개변수는 apply() 메소드에 전달됩니다. this는 핸들러에 바인딩됩니다.
target호출할 수 있는 대상 객체
thisArg호출에 대한 this 인수
argumentsList호출에 대한 인수 목록
apply() 메서드는 어떤 값이든 반환할 수 있습니다.
handler.apply() 메서드는 함수 호출에 대한 트랩입니다.
이 트랩은 다음 작업을 가로챌 수 있습니다.
다음 불변 조건이 위반되면 프록시는 TypeError를 발생시킵니다.
대상 객체는 그 자체로 호출이 가능해야합니다. 즉, 함수 객체여야 합니다.
다음 코드는 함수 호출을 트랩합니다.
| ECMAScript® 2027 Language Specification # sec-proxy-object-internal-methods-and-internal-slots-call-thisargument-argumentslist |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 2월 11일 by MDN contributors.
Your blueprint for a better internet.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.