06 2023 档案

摘要:引入文件(nextjs项目): import Vconsole from 'vconsole' 报错: 处理: let Vconsole if (typeof window !== 'undefined') { Vconsole = require('vconsole') } 打开调试: if (t 阅读全文
posted @ 2023-06-28 15:29 猕猴桃姑娘 阅读(1067) 评论(0) 推荐(0) 编辑
摘要:引入文件(nextjs项目): import wx from './jweixin-1.6.0.js' 报错: 处理: let wx if (typeof window !== 'undefined') { wx = require('./jweixin-1.6.0.js') } 接下来正常处理wx 阅读全文
posted @ 2023-06-28 15:21 猕猴桃姑娘 阅读(379) 评论(0) 推荐(0) 编辑
摘要:1、安装依赖 npm install --save qrcode@1.0.0 2、引入 import QrCode from 'qrcode' 3、使用 const content = window.location?.href || '' QrCode.toDataURL( content, { 阅读全文
posted @ 2023-06-27 10:18 猕猴桃姑娘 阅读(62) 评论(0) 推荐(0) 编辑
摘要:1、安装依赖 npm install --save copy-to-clipboard 2、引用 import copy from 'copy-to-clipboard' 3、使用 const txt = '测试复制' copy(txt) 其他: 自己写复制到剪贴板需要兼容不同的浏览器,这个插件内部 阅读全文
posted @ 2023-06-27 10:09 猕猴桃姑娘 阅读(573) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示