WXWebAssembly.instantiate调试报错?
具体报错的信息如下
TypeError: WebAssembly.instantiate(): Impor #0 module="env" error: module is not an object or function
代码如下
loadWasm() {
console.log('loadWasm====')
var importObject = {
};
WXWebAssembly.instantiate("/static/xxxxxx.wasm", importObject).then(
(result) => {
console.log("初始化成功");
inst = result.instance.exports;
console.log(inst);
},
(err) => {
console.log("初始化失败", err);
}
);
},
图片
占位