try{
JSON.parse(str)
}catch(e){
alert(e.message)
}
捕捉json.parse的错误信息
最新推荐文章于 2023-06-02 15:12:37 发布
try{
JSON.parse(str)
}catch(e){
alert(e.message)
}