Vue3 介绍

Vue.js 是一套构建用户界面的渐进式框架。

Vue 只关注视图层, 采用自底向上增量开发的设计。

Vue 的目标是通过尽可能简单的 API 实现响应的数据绑定和组合的视图组件。

vue3 官方网站:https://v3.vuejs.org/

vue3 中文文档: https://cn.vuejs.org/guide/introduction.html

简单实例:

<html>
<head>
<meta charset="utf-8">
<title>Vue3实例 www.catroom.com.cntitle>
<script src="https://cdn.staticfile.org/vue/3.2.36/vue.global.min.js">script>
head>
<body>
<div id="hello-vue" class="demo">
{{ message }}
div>

<script>
 const HelloVueApp = {
     data() {
       return {
        message: 'Hello Vue!!'
       }
     }
 }
 Vue.createApp(HelloVueApp).mount('#hello-vue')
</script>
</body>
</html>