
------------------ 小程序
文章平均质量分 88
BloodyMandoo
人懒,懒人
展开
-
微信小程序数据缓存API整理
1、wx.getStorage(OBJECT) 从本地缓存中异步获取指定 key 对应的内容 wx.getStorage({ key: 'key', success: function(res) { console.log(res.data) } , fail: function(){}, complete: function(){} }) 2、wx.setS原创 2017-06-06 17:20:41 · 4259 阅读 · 0 评论 -
微信小程序位置API
1、获取位置 wx.getLocation(OBJECT) 获取当前的地理位置、速度。当用户离开小程序后,此接口无法调用;当用户点击“显示在聊天顶部”时,此接口可继续调用。 var that=this; wx.getLocation({ type: 'wgs84', success: function (res) { var latitud原创 2017-06-06 18:50:53 · 7750 阅读 · 0 评论