props 数据可以用 watch 方法来监听: export default { props: { name: String }, setup(props) { watch(() => { console.log(`name is: ` + props.name) }) } }.
確定! 回上一頁