判断Json字符串是否是Json对象 //是否是Json isJsonString(str) { try { if (typeof JSON.parse(str) == "object") { return true; } } catch(e) { } return false; }