随笔分类 - Weixin
摘要:wx.switchTab({ url: ‘../index/index’, success: function (e) { var page = getCurrentPages().pop(); if (page == undefined || page == null) return; page.
阅读全文
摘要:wx.showToast({ title: '成功', icon: 'success', duration: 2000, success:function(){ console.log('haha'); setTimeout(function () { //要延时执行的代码 wx.switchTab
阅读全文
摘要:问题1:网页授权access_token与分享的jssdk中的access_token一样吗? 答:不一样。网页授权access_token 是一次性的,而基础支持的access_token的是有时间限制的:7200s。 问题2:网页授权access_token与基础支持的access_token不
阅读全文
摘要:/** * 用户点击右上角分享 */ onShareAppMessage: function(options) { let image = this.data.shareInfo.imagePath ? this.data.shareInfo.imagePath : '/assets/images/
阅读全文
摘要:官方文档更新了函数,但没有对文档进行更新。4.1配置函数已经由jssdk升级为js$app->js->setUrl($url); $app->js->config(['updateAppMessageShareData','updateTimelineShareData'], $debug = fa
阅读全文