Way of learning Vue

Vue? What is the Vue? Why can?

vue Introduction

Vue 是一套用于构建用户界面的 渐进式框架 ,与其它大型框架不同的是,

Vue 被设计为可以自底向上逐层应用。Vue 的核心库只关注视图层

Three front-end framework

Vue: 尤雨溪 渐进式框架

angular:谷歌公司,学习 angular 得需要玩一下 Typescript

React: Facebook公司,里面的高阶函数特别多,对初学者不友好

Vue introduction and creation

1. Download

cdn download

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>

2, the lead packet

<script src="vue.js"></script>

3, instantiation

<script>
// 2、实例化对象
new Vue({
el:'#app', //绑定根组件(地主家的那块地)

data(){ //data 要是一个函数,并返回一个函数
return{

msg: '黄瓜',  //数据属性 种子
person:{
name: 'wusir',
},
msg2: 'hello Vue', 
}
},

methods:{ //该组件中声明的方法

},

watch:{ // 该组件中监听的单个属性

},

computed:{ // 该组件中监听的多个属性

},
});
</script>

Guess you like

Origin www.cnblogs.com/pymu/p/11409989.html