### ==1.watchEffect用法== ```javascript= <template> <div> {{ test }} <button type="button" @click="test.a.b.c = 666">增加a</button> </div> </template> <script> let test = ref({ a: { b: { c: 123 } } }) watchEffect(() => { console.log(test.value.a.b)}) </script> ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up