try{
typeof JSON.parse(responseParams) == "object" //如果json.parse报错,就走catch
}catch(e){
console.log(e)
return
}
判断代码是否报错
最新推荐文章于 2022-08-30 22:17:13 发布
try{
typeof JSON.parse(responseParams) == "object" //如果json.parse报错,就走catch
}catch(e){
console.log(e)
return
}