微信小游戏 laya json 中文出错

修改laya.wxmini.js中的这段带码

MiniAdpter.getUrlEncode=function(url,type){
if(url.indexOf(".fnt")!=-1 || url.indexOf(".json")!=-1)
return "utf8";
else if(type=="arraybuffer")
return "";
return "ascii";
}

你可能感兴趣的:(微信小游戏 laya json 中文出错)