在Egret中使用接口定义Platform。
Egret项目中默认的platform值是DebugPlatform。
发布微信小游戏后,重新定义了platform的值为WxgamePlatform。
game.js中的小游戏API定义位置platform.js
扫描二维码关注公众号,回复:
803289 查看本文章
在Egret中使用接口定义Platform。
Egret项目中默认的platform值是DebugPlatform。
发布微信小游戏后,重新定义了platform的值为WxgamePlatform。
game.js中的小游戏API定义位置platform.js