JS判断json有哪些方法function isJSON(str) {if (typeof str == 'string') {try {var obj=JSON.parse(str)if(typeof obj == 'object2023-03-05JavaScript270