let axios = require('axios')
let httpurl = "https://www.dytt8.net/index.htm"
axios.get(httpurl,{responseType:"gb2312"}).then(function(res){
console.log(res)
})
请问该如何设置才能让返回的中文不是乱码呢?
let axios = require('axios')
let httpurl = "https://www.dytt8.net/index.htm"
axios.get(httpurl,{responseType:"gb2312"}).then(function(res){
console.log(res)
})
请问该如何设置才能让返回的中文不是乱码呢?