- input 应用 border-radius 无效
.search input{ line-height: 60rpx; padding-left:2%; display: block; width:78%; float:left; border-radius: 100rpx; } [图片] [图片]
2019-01-13 - Cannot read property 'mode' of undefined
-在开发者工具调取地址信息时(wx.chooseAddress)报错 当前 Bug 的表现(可附上截图) VM233:1 appServiceSDKScriptError Cannot read property 'mode' of undefined;at api onAppEnterBackground callback function TypeError: Cannot read property 'mode' of undefined at Bt.<anonymous> (http://127.0.0.1:13823/appservice/__dev__/WAService.js:1:525987) at Bt.emit (http://127.0.0.1:13823/appservice/__dev__/WAService.js:1:305615) at Object.emit (http://127.0.0.1:13823/appservice/__dev__/WAService.js:1:324480) at Bt.<anonymous> (http://127.0.0.1:13823/appservice/__dev__/WAService.js:1:330528) at Bt.emit (http://127.0.0.1:13823/appservice/__dev__/WAService.js:1:305657) at Object.emit (http://127.0.0.1:13823/appservice/__dev__/WAService.js:1:324480) at http://127.0.0.1:13823/appservice/__dev__/WAService.js:1:325658 at http://127.0.0.1:13823/appservice/__dev__/WAService.js:1:262652 at e (http://127.0.0.1:13823/appservice/appservice?t=1547297845026:1598:2640) at n.registerCallback.t (http://127.0.0.1:13823/appservice/appservice?t=1547297845026:1598:2903) - 预期表现 不应报错 - 复现路径 - 提供一个最简复现 Demo chooseAddress:function(){ var that = this wx.chooseAddress({ success:function(res){ var trade_addr = res.provinceName + res.cityName + res.countyName + res.detailInfo+" " res.userName+"收 " "电话:" + res.telNumber "邮编:" + res.postalCode var buyerInfoStr = "{" + "\"userName\":\"" + res.userName + "\"," + "\"postalCode\":\"" + res.postalCode + "\"," + "\"provinceName\":\"" + res.provinceName + "\"," + "\"cityName\":\"" + res.cityName + "\"," + "\"countyName\":\"" + res.countyName + "\"," + "\"detailInfo\":\"" + res.detailInfo + "\"," + "\"nationalCode\":\"" + res.nationalCode + "\"," + "\"telNumber\":\"" + res.telNumber + "\"" + "}" that.setData({ trade_addr: trade_addr, buyerInfo: JSON.parse(buyerInfoStr) }) console.log(that.data.buyerInfo) } }) }
2019-01-12 - 请问在小程序正则表达式如何嵌入动态参数拼接
var keyword = this.data.keyword var option = new db.RegExp({ regexp: /[a-zA-Z0-9]*keyword[a-zA-Z0-9]*/, options: 'i' }) 其中keyword为用户输入的关键词,想实现关键词模糊查询
2019-01-11 - 小程序集成腾讯IM单聊
在微信开发者工具中,可以清楚地看到腾讯腾讯IM后的心跳,但是上传到微信公众平台设为体验版之后,发现没有登录到腾讯IM,在vConsole里也看不到应有的腾讯IM打印出的log信息。 [图片]
2018-08-12