
微信小程序
crazyboy12138
新博客地址: https://www.jianshu.com/u/6d5b80cdfe5d
展开
-
微信小程序实现自动定位
使用了腾讯地图提供的免费api: http://lbs.qq.com/qqmap_wx_jssdk/index.html需要引入一个js文件: http://3gimg.qq.com/lightmap/xcx/jssdk/qqmap-wx-jssdk1.0.zipjs代码:// 引入SDK核心类 var QQMapWX = require('../../libs/qqmap-wx-jssdk.j原创 2017-10-25 15:45:04 · 14382 阅读 · 3 评论 -
服务器接收小程序wx.request参数乱码
wx.request({ url: '...', method: 'GET', data: { msg: '你好' } })后台用javaWeb实现,直接request.getParameter("msg")获取中文参数会乱码。解决方法:wx.request({ url: '...', method: 'GET', data原创 2017-11-15 15:06:13 · 2979 阅读 · 4 评论 -
微信小程序reporter error:Maximum call stack size exceeded
wxml :<view> <text>{{title}}</text> <button bindtap="setData">setData</button> </view> js : setData: function(){ this.setData({ title: 'after' }) }莫名奇妙报错: reporter error:Maxi原创 2017-11-24 20:26:54 · 8085 阅读 · 0 评论 -
微信小程序的坑
#1 display:flex 对 button无效 (然而在html是可以的) #2 iphone调用wx.chooseImage时,sourceType必须是camera && album,否则无法正确调用原创 2018-01-26 21:28:17 · 234 阅读 · 0 评论