watch 监听多个值用​​[ ]​​​括起来, ​​,​​分割

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div id="app" >
<input type="text" name="" id="" vsalue="" v-model="myBrand" />
{{myBrand}}<!-- 可以使用这样取值 -->

</div>

</body>
<script src="js/vue3.js"></script>
<script>
const app=Vue.createApp({
setup(props,context){
const {ref,watch}=Vue;
let myBrand=ref('xxx');
let site=ref('xxxxsss');
// 同时监听一个
watch(myBrand,(currentB,preB)=>{
console.log("现在的值"+currentB+"之前的值"+preB);
},{});
// 同时监听两个
watch([myBrand,site],([currentB,preB],[currentS,preS])=>{
console.log("现在的值"+currentS+"之前的值"+preS);
},{});

return{
myBrand
}


}

});

app.mount("#app");

</script>
</html>