白嫖小白菜

 

[置顶] 微信登录授权方法

摘要: 微信公众号授权登录方法 01.先请求后台接口获取回调链接地址,使用window.location.href进行跳转。 1 // 授权登录 2 login() { 3 uni.request({ 4 url: '后台给的接口地址', 5 method: 'post', 6 data: {} 7 }). 阅读全文

posted @ 2021-06-18 14:36 白嫖小白菜 阅读(1155) 评论(0) 推荐(0) 编辑

2021年7月8日

解决IOS音乐无法自动播放问题

摘要: 解决IOS无法自动播放音乐问题 playMusic(){ var that = this; that.audioMusic = uni.createInnerAudioContext(); wx.config({}); wx.ready(function() { WeixinJSBridge.inv 阅读全文

posted @ 2021-07-08 11:45 白嫖小白菜 阅读(325) 评论(0) 推荐(0) 编辑

2021年6月29日

ajax和axios的区别

摘要: 1.两种方法请求接口代码 axios axios({ url: '接口地址', method: 'get/post', responseType: 'json', // 默认格式 data: { "参数名" : "参数值" } }).then(function (response) { consol 阅读全文

posted @ 2021-06-29 15:10 白嫖小白菜 阅读(761) 评论(0) 推荐(0) 编辑

导航