摘要: 2、 scoped局部有效 <style scoped> .h2{ color: red; }</style 阅读全文
posted @ 2021-01-27 20:29 水墨无痕258 阅读(76) 评论(0) 推荐(0)
摘要: 1、带localstorage的 https://files.cnblogs.com/files/weibo258/vuedemo02%E5%B0%81%E8%A3%85localstorage.zip <template> <div id="app"> <input type="text" v-m 阅读全文
posted @ 2021-01-27 18:25 水墨无痕258 阅读(119) 评论(0) 推荐(0)
摘要: <div ref="box">我是一个box</div><button v-on:click="getInputValue">获取第二个表单里的数据</button><br><br><button v-on:click="run1()">执行事件的第一种写法</button><button @cli 阅读全文
posted @ 2021-01-27 16:22 水墨无痕258 阅读(191) 评论(0) 推荐(0)
摘要: 1、 2、v-bind 可以简略: v-html v-text v-bind:class的使用 <div v-bind:class="{'red':flag}">我是div</div> <div v-bind:class="{'red':flag,'blue':!flag}">我是另一个div</d 阅读全文
posted @ 2021-01-27 15:16 水墨无痕258 阅读(71) 评论(0) 推荐(0)
摘要: Action用于处理异步任务 阅读全文
posted @ 2021-01-25 15:35 水墨无痕258 阅读(31) 评论(0) 推荐(0)