首页 > Web开发 > 详细

SyntaxError: JSON.parse: bad control character in string literal at line 1 column 16 of the JSON data

时间:2016-07-21 17:57:58      阅读:1068      评论:0      收藏:0      [点我收藏+]

JSON.parse转化Json字符串时出现:SyntaxError: JSON.parse: bad control character in string literal at line 1 column 16 of the JSON data

测试代码:

JSON.parse("{\"Result\":\"bhbh\thuhuha\"}")

 罪魁祸首:\t导致

SyntaxError: JSON.parse: bad control character in string literal at line 1 column 16 of the JSON data

原文:http://www.cnblogs.com/zhanqun/p/5692268.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!