升级vue-cli4.5
npm i -g @vue/cli@next
新建vue3.0版本
vite
快速安装
**npm init vite-app <名字》
npm install
npm run dev**
import {
reactive} from 'vue
setup(){
比如 调一个函数
const data =reactive({
counter:1;
})
return {
data}
}
vue3.0
猜你喜欢
转载自blog.csdn.net/qq_45424679/article/details/112912097
今日推荐
周排行