摘要: $json=stripslashes($json);//出去反斜杠\$res=json_decode($json); 阅读全文
posted @ 2015-09-01 12:05 小小小尘埃 阅读(143) 评论(0) 推荐(0)
摘要: JSON.parse()和JSON.stringify()1.parse 用于从一个字符串中解析出json 对象。例如var str='{"name":"cpf","age":"23"}'经 JSON.parse(str) 得到:Object: age:"23" name:"cpf" ... 阅读全文
posted @ 2015-09-01 11:41 小小小尘埃 阅读(98) 评论(0) 推荐(0)