2018年9月25日

校验字符串是否json格式

摘要: //判断是否JSON格式 function isJSON(str) { if (typeof str == 'string') { try { var obj=JSON.parse(str); if(typeof obj == 'object' && obj ){ return true; ... 阅读全文

posted @ 2018-09-25 14:09 onlystrive 阅读(574) 评论(0) 推荐(0) 编辑

导航