在編譯 wasm 模組前,需要設定golang 交叉編譯引數,目標系統 GOOS=js 和目標架構 ... 原因是wasm 檔案響應頭的content-type 為 application/wasm; ...
確定! 回上一頁