功能模块
便捷CV,省时节力
湾流~
这个作者很懒,什么都没留下…
展开
-
html2canvas 生成图片并将图片上传为网络链接
// 上传图片 videoFile(file) { let params = new window.FormData() let fileOfBlob = new File([file], new Date().getTime() + '.jpg') params.append('file', fileOfBlob) uploadImgFile( params).then(res => { console.log('上传结果', res原创 2022-09-24 17:51:29 · 1191 阅读 · 1 评论 -
vue 中使用节流和防抖(触发事件中&watch中使用)
/* * fun [function] 需要防抖的函数 * delay [number] 毫秒,防抖期限值 */export function debounce(fun, delay = 300) { let timer; return function () { let ctx = this let args = arguments if (timer) { clearTimeout(timer) } timer = setTimeout原创 2022-09-24 17:49:41 · 1801 阅读 · 0 评论 -
小程序&vue 发送验证码后冷却功能
小程序&vue 发送验证码后冷却功能 附:标签自适应文字宽度原创 2022-09-24 16:58:12 · 297 阅读 · 0 评论 -
h5自定义微信分享链接
未自定义前自定义后1.安装微信jweixin-1.6.0依赖"jweixin-1.6.0": "^1.0.0",2.封装一个wxsdk.js方法前端要请求后端接口获取公众号的信息并填入// wetchat.js -- 个人封装import wx from 'jweixin-1.6.0'; // 这是自己优化的sdk方法,可以解决ios签名报错的一些问题// import wx from 'weixin-js-sdk'; // 这是官方的微信sdk引入方法import { ge原创 2022-04-07 21:08:05 · 1670 阅读 · 0 评论 -
vue 制作带二维码的海报并下载 。 (html2canvas转为图片不显示文字的方法)
效果图如上**1.安装依赖 npm install**qrcode (生成二维码)html2canvas (截取html元素生成图片)**2.结构**```typescript //海报结构 //posterHtmlBg 海报背景图路径 v-show="false" 元素不需要显示在页面上...原创 2022-04-07 20:13:48 · 1987 阅读 · 3 评论 -
vue 生成二维码并点击按钮下载功能
安装qrcode依赖npm install qecode页面部分<canvas id="qrcode" ref="qrcode" width="200" height="200"></canvas><a href="javascript:;" @click="downloadCode"> 下载二维码</a href="javascript:;"><script>import qrcode from "qrcode"; //引入qrc原创 2022-01-25 23:15:04 · 1214 阅读 · 0 评论 -
vue 一键复制粘贴文字功能
1/下载 clipboard 依赖npm install clipboard --save2/在功能页面写如下代码<template> <div style="margin:10px auto;" v-for="(item,index) in ringTemplete" :key="index" class="article" > <el-card class="box-card"> <h1>原创 2021-10-17 23:52:57 · 902 阅读 · 0 评论