php和js中json的编码和解码
摘要:
php中 1)编码 $jsonStr = json_encode($array) 2)解码 $arr = json_decode($jsonStr) <?php echo json_encode("中文", JSON_UNESCAPED_UNICODE); 添加参数:JSON_UNESCAPED_U 阅读全文
posted @ 2016-09-26 21:26 Sweet小马 阅读(5271) 评论(0) 推荐(0) 编辑