web前端
Dear热热
加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油加油
展开
-
一些不常用的网站
一些不常用的网站原创 2022-07-13 10:52:36 · 200 阅读 · 0 评论 -
Vue keep-alive总结(缓存)
<keep-alive>是Vue的内置组件,能在组件切换过程中将状态保留在内存中,防止重复渲染DOM。常见用法<keep-alive> <router-view v-if="$route.meta.keepAlive"></router-view></keep-alive><router-view v-if="...原创 2020-01-07 16:28:18 · 117 阅读 · 0 评论 -
vue 如何解决移动端Click事件300ms延迟的问题?
npm install fastclick -S//引入import fastClick from 'fastclick'//初始化FastClick实例。在页面的DOM文档加载完成后fastClick.attach(document.body)原创 2020-01-07 15:53:13 · 290 阅读 · 0 评论 -
vue封装tabbar组件
html<div class="tabbar flex"> <div v-for="(i, index) in tabbarArr" :key="index" class="tabbar-item" @click="switchTo(i.path)"> <img :src="i.path === $route.path ? i.selected : i...原创 2020-01-06 11:43:09 · 777 阅读 · 0 评论 -
vue自定义全局吐司toast
先看效果1,index全局组件import Vue from 'vue'import toast from './toast.vue'// 创建组件构造器const toastHonor = Vue.extend(toast); export default function ({text="要显示的内容",time=2000,type=undefined}={}) { ...转载 2019-11-21 11:21:45 · 503 阅读 · 0 评论 -
vue实现头像上传
<div class="item_bock flex flex_x_center"> <label> <img :src="userInfo.avatar" /> <input type="file" accept="image/*" @change="handleFile" class="hiddenInput" />...原创 2019-11-18 09:39:29 · 3238 阅读 · 0 评论 -
Vue 路由切换动画(进入和退出)
<transition :name="transitionName"> <router-view class="view"></router-view></transition><script> export default { name: 'App', data(){ retu...原创 2019-11-16 18:00:55 · 4634 阅读 · 0 评论 -
Vue 刷新局部页面(不闪烁)
首先在App.vue组件写入<template> <div id="app"> <router-view v-if="isRouterAlive" /> </div></template><script> export default { name: 'App', p...原创 2019-11-06 13:27:15 · 2353 阅读 · 0 评论 -
Vue 验证码点击倒计时
废话不说直接上代码html<div class="num" @click="yzmBtn"> <button :disabled="disabled">{{yzm}}</button></div>jsmethods: { yzmBtn() { let time = 5; let timer = setInter...原创 2019-10-27 21:10:54 · 344 阅读 · 0 评论