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.get() 메서드는 속성 값을 가져오기 위한 트랩입니다.
다음 매개변수는 get() 메서드에 전달됩니다. this는 처리기에 바인딩됩니다.
target대상 객체
property가져올 속성의 이름 또는 Symbol입니다.
receiver프록시 또는 프록시에서 상속되는 객체입니다.
get() 메서드는 어떤 값이든 반환할 수 있습니다.
handler.get() 메서드는 속성 값을 가져오기 위한 트랩입니다.
이 트랩은 다음 작업을 가로챌 수 있습니다.
다음 불변량이 위반되면 프록시에서 TypeError가 발생합니다.
다음 코드는 속성 값을 가져오는 것을 트랩합니다.
다음 코드는 불변 조건을 위반합니다.
| ECMAScript® 2027 Language Specification # sec-proxy-object-internal-methods-and-internal-slots-get-p-receiver |
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.