|
Menu
×
×
正确!
VUE - 代码练习:本练习中的观察者应该在每次“rangeVal”数据属性发生变化时将“count”数据属性加一。 观察者必须被称为什么? <script> const app = Vue.createApp({ data() { return { rangeVal: 70, count: 0 } }, watch: { @(8)() { this.count++ } } }) app.mount('#app') </script> <script> const app = Vue.createApp({ data() { return { rangeVal: 70, count: 0 } }, watch: { rangeVal() { this.count++ } } }) app.mount('#app') </script> 不正确点击 这里 再试一次。 正确!下一个 ❯ |
这将重置所有 88 个练习测验的分数。
您确定要继续吗?