Egret專案打包發布成微信小遊戲報錯問題

2021-10-04 04:20:28 字數 380 閱讀 6926

failed to execute 'bindtexture' on 'webglrenderingcontext': parameter 2 is not of type "webgltextture"

或者gamethirdscripterror bitmapdata.hascompressed2d is not a function typeerror:

其實原因很簡單,就是引擎庫已經過時,部分api已經無效所導致的。

解決方法也很簡單,在終端執行命令公升級egret引擎庫版本即可:egret upgrade --egretversion 引擎版本號

uniapp發布微信小程式適應頭部

uni.getsysteminfo safeareainsets screenheight 667 螢幕高度 screenwidth 375 螢幕寬度 statusbarheight 20 狀態列高度 system ios 10.0.1 作業系統版本 version 7.0.4 版本號 window...

微信小程式專案開發教程

1.目錄結構 test page index index.js index.json index.wxml index.wxss onlaunch function onshow function onhide function globaldata debug true page containe...

WordPress版微信小程式3 2版發布

結構參考wordpress 官方 rest api,遵循wordpress外掛程式的編寫規範,效能和執行速度都有所提高。注意 必須停用老版本的wordpress外掛程式,才能使用啟用新版本的外掛程式。4.瀏覽數的 也放進了外掛程式,無需改動主題的functions.php檔案,只需要在主題的顯示瀏覽...