创建项目:cnpm init vite-app vue3-2 运行项目: cd vue3-2 cnpm install cnpm run dev 浏览器中打开http://localhost:3000
state.text2 } // 1秒钟之后两个div的值要分别改变 setTimeout(() => { state.text = 'hello Vue3' state.text2 = 'hello Vue3 app2.innerText = state.text2 }) setTimeout(() => { state.text = 'hello Vue3' state.text2 = 'hello Vue3