在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
1 let arrayBuffer = fsm.readFileSync(res.tempFilePath) 2 let unit8Arr = new Uint8Array(arrayBuffer) 3 let encodedString = String.fromCharCode.apply(null, unit8Arr) 4 let decodedString = decodeURIComponent(escape(encodedString)) 5 console.log(JSON.parse(decodedString))
1 let arrayBuffer = fsm.readFileSync(tempFilePath,"utf-8") 2 console.log(JSON.parse(arrayBuffer))
|
请发表评论