![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Vue
情迷不是情谜
这个作者很懒,什么都没留下…
展开
-
Vue学习day03-计算属性和侦听器、computed vs watch
计算属性和侦听器1. 计算属性vcomputed<p>共有{{total}}</p>computed: { total() { return this.courses.length + "门课程" }},compute vs watch原创 2021-06-14 09:42:34 · 96 阅读 · 0 评论 -
Vue学习day02-vue的模板语法
插值文本1. v-bind、{{ }}可以用来绑定值,双向绑定。<div id="app"> {{ message }} <span v-bind:title="message1"> <h2>{{ message1 }}</h2> </span></div>注意:v-bind:可以缩写成:列表渲染1. v-for 基于数组渲染列表2. ‘item in items’,其中item原创 2021-06-13 11:49:44 · 95 阅读 · 0 评论