js 字符串怎么转json对象

✀[{a=b,c=d},{f=d,r=f},{a=3,f=3}]✀ 这样的字符串怎么快速的转成json对象
2025-05-08 13:11:01
推荐回答(1个)
回答1:

JSON.parse(jsonstr); //可以将js字符串转换成json对象