js string转json要注意的地方

JSON.parse('{"apiId":"22","name":"33"}');

1.json要用引号括起来
2.json串的引号和json中key的引号不能是同一种

猜你喜欢

转载自blog.51cto.com/8832695/2392354