小程序中UserInfoButton创建的button不能显示出来
小游戏demo程序和自己创建的白版程序
用下面代码
var button = wx.createUserInfoButton({ type: 'text', text: '获取用户信息', style: { left: 0, top: 0, width: 200, height: 200, lineHeight: 200, backgroundColor: '#000000', color: '#000000', textAlign: 'center', fontSize: 16, borderRadius: 4 }})button.onTap((res) => { console.log(res)})button.show() |
没有显示出按钮
console.log(button) |
打印出button后 查看
text:[Exception: ReferenceError: value is not defined at t.get [as text] (http://127.0.0.1:51637/game/\_\_dev\_\_/WAGame.js:14:4761) at t.remoteFunction (<anonymous>:2:26)]
我怎么调试这次的用户授权更新的公告。
