小程序不支持TextDecoder?
下载云存储的json文件,涉及汉字转码问题,开发工具上完整运行
let gbk = new TextDecoder('gbk').decode(new Uint8Array(res.data)) //这里把gbk文件读入转换成了utf8的String
真机上
TypeError: TextDecoder is not a constructor
求高手解答
下载云存储的json文件,涉及汉字转码问题,开发工具上完整运行
let gbk = new TextDecoder('gbk').decode(new Uint8Array(res.data)) //这里把gbk文件读入转换成了utf8的String
真机上
TypeError: TextDecoder is not a constructor
求高手解答