中文json字符串转对象情况下,含特殊字符“-”等处理

前端之家收集整理的这篇文章主要介绍了中文json字符串转对象情况下,含特殊字符“-”等处理前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

<table class="javascript"><tr class="li1">
<td class="ln"><pre class="de1">1
2
3
4
5
6
7
8
9
10
11
12
13
14

str “-”影响     jsonStr addQuotestr         jsonObj evaljsonStr         解决报错“SyntaxError: missing : after property id”     addQuotestr         result         temp str.         i itemp. i                 tempStr tempi.                 result result tempStr tempStr                 result. result.    

猜你在找的Json相关文章