WAGame.js:3 gameSDKScriptError
wx.createUserInfoButton is not a function;wx.postMessage
TypeError: wx.createUserInfoButton is not a function
at e.login (ziyun/src/project.js:1:4200)
at ziyun/src/project.js:1:4083
at WAGameSubContext.js:3:31641
at Object.p [as subscribeHandler] (WAGameSubContext.js:3:13155)
at http://127.0.0.1:51282/game/__dev__/WAGame.js:3:15811
at Array.forEach (<anonymous>)
at Object.S [as publish] (http://127.0.0.1:51282/game/__dev__/WAGame.js:3:15775)
at e.value (http://127.0.0.1:51282/game/__dev__/WAGame.js:9:21317)
at Function.u (http://127.0.0.1:51282/game/__dev__/WAGame.js:9:18214)
at Object.<anonymous> (http://127.0.0.1:51282/game/__dev__/WAGame.js:4:18275)
官方例子在开放域调用 还是提示找不到方法 ,是不是开发工具要更新
你好,最新的基础库版本,你更新到最新版开发工具试试看
我也遇到了,原因是wx.createUserInfoButton方法,“基础库 2.0.1 开始支持,低版本需做兼容处理”,而目前开发工具最新基础库版本是“2.0.0”,手机微信上预览可以调用
有没有大神开始弄,回答下 引擎cocos