- 做了一个环形图表在iphone和安卓显示不一致,求大神解答
这个图表在开发工具和iphone上都是正常的,但是放到安卓里就不正常,出现如图错误。 使用的是 https://github.com/xiabingwu/chartjs-wechat-mini-app 这个小程序图表插件。 因为本人平时canvas很少接触,所以不太清楚是什么问题,求各位大神解答。 [图片] ignore_js_op style="word-wrap: break-word;">[图片] /ignore_js_op>
2017-09-21 - 多层循环后点击子元素怎么获得父元素的下标值?
<block wx:for="{{a}}" wx:for-item="item" > <view data-index="{{index}}"> <block wx:for="{{item.b}}" > <input type="text" bindfocus="index" data-index="{{index}}"> </block> <view> </block> input获得焦点的时候怎么获取上一层循环的index呢?
2017-09-21 - 如何统计微信小程序里textarea的字数?
微信小程序里面的textarea绑定bindinput事件竟然不触发,那要用绑定什么事件才能统计到里面输入的字数?
2017-09-21 - background-image 手机不显示问题
如题设置了wxss background-image: url(../../images/icon-arrowright.png);pc上测试可以显示,但是手机上不能显示,是什么那里的问题呢? .arrow{ position: absolute; top: 16px; right: 15px; width: 15px; height: 15px; background-image: url(../../images/icon-arrowright.png); background-repeat: no-repeat; background-size: 100% 100%; }
2017-09-21 - 调用服务器接口 所带的中文参数会乱码 怎么处理
var verifyUrlUrl = ipurl + '/do/xxx?param1=中文'; wx.request({ url: verifyUrlUrl, method: 'post', header: header, success:function(res) {}, }) 发出的请求其中url中的中文参数总是乱码
2017-09-21 - 后台的json数据,无法调用具体数据
//index.js onLoad: function () { var that = this wx.request({ url: 'http://127.0.0.1:8080/tmall/foreproduct?pid=1', header: { 'content-type': 'application/json' }, success: function (res) { console.log(res.data) //这里成功打印出了数据 console.log(res.data.product) //这里打印显示undefined }, fail: function (res) { console.log("fail") } }) ignore_js_op style="">[图片] /ignore_js_op> },
2017-09-21 - 提示框wx.showToast
在ios系统上设置了一个loading,一个success,在上拉加载并到底时两个提示框会同时出现该怎么解决。
2017-09-21 - 点击删除按钮怎样删除对应的input值
点击删除按钮怎样删除对应的input值,有什么好点的逻辑方法么,或者可以使用for循环来删除对应的inputvalue值?一个一个写太麻烦而且代码量超多啊,求打大神指点点击删除按钮怎样删除对应的input值 [图片]
2017-09-21 - 微信小程序发布时报85002错误
[图片] array(2) { ["errcode"]=> int(85008) ["errmsg"]=> string(52) "category is in invalid format hint: [W69lNA0133e626]"} 返回 85008错误,提示类目有误,但是我的类目是通过接口获取的,怎么会有误呢?有人知道吗?
2017-09-21 - 小程序调用蓝牙API问题
wx.openBluetoothAdapter({ success: function (res) { that.setData({ msg: "初始化蓝牙适配器成功!" + JSON.stringify(res), }) //监听蓝牙适配器状态 wx.onBluetoothAdapterStateChange(function (res) { that.setData({ sousuo: res.discovering ? "在搜索。" : "未搜索。", status: res.available ? "可用。" : "不可用。", }) }) }, complete: function (res) { // complete console.log(res); } }) 这段代码,执行到了complete,输出内容为 {errMsg: "openBluetoothAdapter:fail TypeError: Cannot read property 'addListener' of undefined"}errMsg: "openBluetoothAdapter:fail TypeError: Cannot read property 'addListener' of undefined"__proto__: Object 网上查了下,并没类似的资料,有人碰到类似问题,说是一样的代码在之前的开发者工具调试就不会出这个问题?
2017-09-21