会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
路漫漫其修远兮,吾将上下而求索
文章如有侵作者权,请作者联系我,立即删除
博客园
园子
首页
新随笔
联系
管理
订阅
上一页
1
···
6
7
8
9
10
2021年10月4日
在苹果手机H5页面输入框点击输入导致页面错乱
摘要: 解决方案: html: <input type="number" @blur="Input()" placeholder="请输入数字" /> JS: Input(){ setTimeout(function() { var scrollHeight = document.documentEleme
阅读全文
posted @ 2021-10-04 16:35 编程民工
阅读(252)
评论(0)
推荐(0)
2021年10月3日
uni-app/Vue 公众号H5调用微信扫码
摘要: npm安装微信JS-SDK npm install jweixin-module --save 通过网址下载: https://unpkg.com/browse/jweixin-module@1.6.0/lib/index.js 需要用到微信JSSDK页面,引入微信JSSDK //微信js-sdk引
阅读全文
posted @ 2021-10-03 23:43 编程民工
阅读(1125)
评论(6)
推荐(0)
2021年9月27日
uni使用new image()获取图片信息报错
摘要: uni使用new image()报ReferenceError: Image is not defined或者获取不到对象 JS代码: var img = new Image(); // 创建对象 img.src = getBase64List; // 改变图片的src img.onload = f
阅读全文
posted @ 2021-09-27 14:19 编程民工
阅读(5492)
评论(0)
推荐(0)
2021年9月26日
vue 路由报[vue-router] Duplicate named routes definition
摘要: vue路由报[vue-router] Duplicate named routes definition的原因: 配置路由定义的路由名称name存在重复名称 解决方案: 把重复的路由的名称name修改成不一样即可
阅读全文
posted @ 2021-09-26 10:50 编程民工
阅读(3689)
评论(0)
推荐(0)
2021年9月22日
vue封装自定义toast
摘要: 封装自定义toast: 1、新建toast文件夹,文件夹内新建toast.vue和index.js文件: 2、toast.vue代码: <template> <transition name="fade"> <div class="toast" v-show="show" v-html="messa
阅读全文
posted @ 2021-09-22 13:55 编程民工
阅读(482)
评论(0)
推荐(0)
2021年9月21日
vue/uniapp实现二维码生成
摘要: 使用 qrcodejs2 实现二维码生成 下载 qrcodejs2 依赖: npm install qrcodejs2 -S 需要使用 qrcodejs2 页面引入该依赖: import QRCode from 'qrcodejs2' // 引入qrcode html代码: <div class="
阅读全文
posted @ 2021-09-21 15:03 编程民工
阅读(2074)
评论(0)
推荐(0)
2021年9月20日
vue截图界面保存本地
摘要: 使用html2canvas把界面生成图片 下载 html2canvas 依赖: npm install html2canvas -S 需要使用 html2canvas 页面引入该依赖: import html2canvas from 'html2canvas' html代码: <template>
阅读全文
posted @ 2021-09-20 22:28 编程民工
阅读(571)
评论(0)
推荐(0)
2021年9月13日
使用web-view向h5传参
摘要: 主应用通过url给内嵌h5传参: <web-view src="http://xxxxxxxxxx/?Id=1111"></web-view> h5页面通过路径获取参数: onLoad() { this.getQueryString() }, onShow() { this.getQueryStri
阅读全文
posted @ 2021-09-13 14:40 编程民工
阅读(998)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
公告