📜  观察数组和对象 (Vue 3) - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:29.103000             🧑  作者: Mango

代码示例1
watch(
  colours,
  () => {
    console.log('The list of colours has changed!');
  },
  {
    deep: true,
  }
);