JavaScript字符串转对象格式的方法

- --- - --

JSON.parse()

只能是标准的json格式,否则报错

- --- - ---------

eval()

- --- - --- - --- - ---

new Function()

--- --- - ---- ---------------- - - --------