- 当前 Bug 的表现(可附上截图)
gameThirdScriptError
TypeError: r: wx.createOpenSetnSettingButton is not a function. (In 'n 'wx.createOpenSetnSettingButton', ', 'wx.createOpenSetnSettingButton' is undefined) at line 57 in in https://servicewechat.qq.com/game.js
val
value@ue@https://servicewechat.qq.com/game.js:57:2335
p@h
p@
p@https://servicewechat.qq.com/game.js:57:3762
htt
62
https://servicewechat.qq.com/game.js:27:558
onl
onload@ad@https://servicewechat.qq.com/game.js:15:200
不是所有手机都出现
这个很烦人,谁知道咋回事,希望能帮帮忙
没问题的机型:华为;
出问题的机型:iphone6;
微信是6.6.3
之前遇到一次是android有问题,ios没问题,
代码:
ShowWXSetup()
{
let img = RES.Res("img", "setup");
wxsetup = wx.createOpenSettingButton({
type: 'image',
image: "images/setup.png",
style: {
left: STATIC.SCREEN_WID - img.width * 2,
top: STATIC.SCREEN_HEI - img.height * 1.5,
width: img.width,
height: img.height,
lineHeight: 40,
backgroundColor: '#ff0000',
color: '#ffffff',
textAlign: 'center',
fontSize: 16,
borderRadius: 4
}
})
}
你好,请提供出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。