小程序
划水的鲸鱼
不忘初心的鲸鱼
展开
-
marker 上的气泡 callout的使用
不废话,直接上图和代码:markers: [{ id:1, latitude: 31.23, longitude: 121.45, iconPath: '../../static/icon/tag.png', callout:{ color:'#ffffff', content:'气泡内容', fontSize:16, borderRadius:5, bgColor:'#FF0000', padding:20, textAlign:'center', displ原创 2020-08-21 10:34:04 · 3789 阅读 · 3 评论 -
小程序页面跳转然后刷新
我们一般在A页面跳到B页面,在B页面做完缓存需要再次跳回A页面。这时候会发现,是退回A页面,而且页面没有刷新该怎么办呢?//存储到本地uni.setStorage({ key: '键', data: '值', success: function () { //跳回A页 uni.switchTab({ url: '/pages/index/index', success(){ let page = getCurrentPages().pop原创 2020-08-20 14:12:36 · 1334 阅读 · 0 评论 -
小程序自动化测试jest
官方文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/auto/quick-start.html准备工作:1.下载官方的demo,https://github.com/wechat-miniprogram/miniprogram-demo2.安装node.js3.安装微信开发者工具4.用微信开发者工具导入我们下载的项目demo以上环节准备好我们就开始按步骤讲解了:1.打开微信开发者工具,找到右上角详情按钮,打开,然后点击原创 2020-08-19 18:49:08 · 962 阅读 · 0 评论