摘要: 1、创建const.js文件,内容如下: export const pinyin = { 'a': '\u554a\u963f\u9515', 'ai': '\u57c3\u6328\u54ce\u5509\u54c0\u7691\u764c\u853c\u77ee\u827e\u788d\u723 阅读全文
posted @ 2024-07-16 20:09 Fly_bokeyuan 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、在页面中引入js文件 const qrCode = require('@/assets/js/weapp-qrcode.js') 2、在页面中增加 <canvas class="canvas" canvas-id="couponQrcode"></canvas> 3、生成二维码 // 二维码生成 阅读全文
posted @ 2023-03-14 09:46 Fly_bokeyuan 阅读(228) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css"> html { -webkit-filter: grayscale(100%); }</style> 阅读全文
posted @ 2022-12-02 11:14 Fly_bokeyuan 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 1、创建nativeContact.js文件 /** * nativeContact,通过Native.js调用原生API * 选择通讯录电话 */ export const nativeContact = { /** * 通讯录模块 */ contacts: { getContact: (call 阅读全文
posted @ 2022-11-03 16:15 Fly_bokeyuan 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: const save = (base64) => {// #ifdef APP-PLUS const bitmap = new plus.nativeObj.Bitmap("base64"); bitmap.loadBase64Data(base64, function() { const url 阅读全文
posted @ 2022-11-03 16:09 Fly_bokeyuan 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 1、创建一个watermark.js文件 let watermark = {} let setWatermark = (str) => { let id = '1.23452384164.123412416'; if (document.getElementById(id) !== null) { 阅读全文
posted @ 2022-01-11 15:29 Fly_bokeyuan 阅读(1112) 评论(0) 推荐(0) 编辑
摘要: 1、下载 iTools4 以上的版本 下载地址:http://www.itools.cn/ 2、手机通过usb连接电脑 3、重启Hbuilder 注意Hbuilder需要2.5以上的 4、手机中需要信任Digital Heaven,通用--设备管理--Digital Heaven 阅读全文
posted @ 2021-09-02 16:38 Fly_bokeyuan 阅读(244) 评论(0) 推荐(0) 编辑
摘要: //复制内容,html转文本并保留格式 copyEdit(val) { let copyHandler = this.copys(val); document.addEventListener("copy", copyHandler); document.execCommand("copy"); r 阅读全文
posted @ 2021-09-02 15:08 Fly_bokeyuan 阅读(529) 评论(0) 推荐(0) 编辑
摘要: //导入 const path = require('path'); const fs = require('fs'); function downLoadTemplate() { try { const _path = path.join(__dirname, '../static/templat 阅读全文
posted @ 2020-09-22 15:49 Fly_bokeyuan 阅读(733) 评论(0) 推荐(0) 编辑
摘要: 第一步、先安装node.js nodejs下载网址:https://nodejs.org/en/ 第二步、开始安装及配置webpack 1、新建项目目录,初始化npm,新建开发源目录 mkdir react-demo && cd react-demo npm init -y mkdir src//w 阅读全文
posted @ 2020-07-24 22:50 Fly_bokeyuan 阅读(358) 评论(0) 推荐(0) 编辑