<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>演示例子</title>
<script src="https://cdn.bootcdn.net/ajax/libs/vue/3.2.31/vue.global.prod.min.js"></script>
</head>
<body>
<div id="app">{{ac}}{{cd.ko}}{{msg}}</div>
<script>
Vue.createApp({
setup(){
var ac=Vue.ref([333,444])
var cd=Vue.reactive({ko:99})
return {ac,cd}
},
data(){
return {
msg:123
}
}
}).mount('#app')
</script>
</body>
</html>
vue3非打包直接用的配置
于 2022-04-25 21:02:51 首次发布