Created
June 13, 2022 09:48
-
-
Save 12cassie34/665207d6efeb35a67c84e99eee4fe129 to your computer and use it in GitHub Desktop.
Vue Reactivity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const target = { | |
message1: "hello", | |
message2: "everyone" | |
}; | |
const handler = { | |
get(target, prop, receiver) { | |
return "world"; | |
} | |
}; | |
const myProxy = new Proxy(target, handler); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment