JavaScript/vue.js/watch:修订间差异
来自康健生活
创建页面,内容为“== VUE 3 ==” |
|||
| 第1行: | 第1行: | ||
== VUE 3 == | == VUE 3 == | ||
<syntaxhighlight lang="html"> | |||
<script setup> | |||
import { ref } from 'vue' | |||
watch( | |||
() => [foo, bar], | |||
(_new, _old) => { | |||
// ... | |||
} | |||
) | |||
</script></syntaxhighlight> | |||