摘要:
1.字符串、数字(通过ref实现) <template> <button @click="add">{{ num }}</button> </template> <script lang="ts"> import { defineComponent, ref } from 'vue' export 阅读全文
posted @ 2020-10-27 19:33
阿凡达的小驴
阅读(515)
评论(0)
推荐(0)
摘要:
html <div v-setcolor="red" ></div> 1.vue2.0写法 Vue.directive('setcolor', { bind(el, binding, vnode) { el.style.color = binding } }) 2.vue3.0写法(beforeMo 阅读全文
posted @ 2020-10-27 19:12
阿凡达的小驴
阅读(846)
评论(0)
推荐(0)
摘要:
1.user-select属性 user-select: none : 元素和子元素的文本将无法被选中 user-select: text : 文本可以被选中(默认值) user-select: auto : 文本将根据浏览器的默认属性进行选择 user-select: all : 当所有内容作为一 阅读全文
posted @ 2020-10-27 18:03
阿凡达的小驴
阅读(995)
评论(0)
推荐(0)

浙公网安备 33010602011771号