logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

vue插件集合16:vue前端生成图片验证码包含验证

1:创建组件的文件(简单粗暴上代码,方便复制)<template><div class="s-canvas"><canvas id="s-canvas" :width="contentWidth" :height="contentHeight"></canvas></div></template>&...

#前端#vue.js#javascript
vue的底部tab切换 以及图片的变化 两种方式

<template><div class="footbar"><router-link to='/' tag='div'><span><img :src="this.$route.path=='路径'?'选中的图片':'未选中的图片'" alt=""></...

vue插件集合24:获取token,存到header中,后台验签token

1:从接口处拿到token以此接口为例子this.$http.post("/api/account/login/", {account: this.moblie,password: this.password,captcha_image: this.icodenum}).then(res => {consol.log

vue插件集合18:vue实现长按删除方法

1:template中<div v-for="(item,index) in arr" :key="item.id" @touchstart.prevent="touchinUk(index)"@touchend.prevent="cleartime(index)"><div&

vue插件集合12:vue中判断是iOS,安卓,以及微信的方法

模板中: 其中,img是一张图片,在微信中提示打开浏览器下载<div id="showad" v-show="ShowDark"><div class="pop&q

#ios#微信
vue插件集合17:vue获取国家以及地区的方法

<template><div class="atnight"><div class="topseach"><form action="/"><van-search v-model="searchVal" :placeholder="$t('auth.count')"show-action @search="onS...

vue插件集合20:vue三种路由引用以及路由守卫

1:这是最常见一种 route的方式import home from "./home.vue";import about from "./about.vue";export default new Router({routes: [{path: '/home ',name: 'home ',component: home ,meta: {title: 'home',require...

vue项目上传图片的方法

<template><div class="power"><ul class="clearfix"><li class="one" v-if="imgs.length>0" v-for='(item ,index ) in imgs'><img :src="item"></li>...

笔记:uniapp授权微信公众号

由于是第一次对接uniapp授权微信公众号,过程也很复杂,记录一下,下次不迷路。onLoad() {//获取当前页面的urllet link =window.location.href;console.log('我是请求的url')console.log(link)// let link = 'http://xxxxxx.com/?code=001vGk&state=123#/';let

#vue.js#javascript#前端
到底了