![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
牧之悠然
文字可以丈量脚步丈量不到的地方,
书籍可以照亮黑夜无法照亮的迷惘。
展开
-
vue禁止复制的方式
<template> <section class="p-10"> <div class="app"> <p>你是我的眼</p> </div> </section> </template> <script> export default { created() { this.$nextTick(() => { // 禁用转载 2020-08-31 16:49:05 · 1764 阅读 · 0 评论 -
vue 手指长按触发事件
按钮 <span class="btn" @touchstart="gtouchstart()" @touchmove="gtouchmove()" @touchend="gtouchend()">按住说话</span> data数据定义一个定时器 timeOutEvent:0,//定时器 方法 gtouchstart(){ this.timeOutEvent = setTimeout(()=>{ this.timeOutEvent = 0;转载 2020-08-31 16:44:42 · 1125 阅读 · 0 评论 -
vue computed计算属性传值并返回计算结果
vue computed计算属性传值并返回计算结果原创 2020-08-28 11:19:44 · 2953 阅读 · 0 评论