解决方法 方法一: eval(); 用法 eval("("+JsonDate+")") 将字符串转化为 json对象,并去除转义字符。 方法二: 在JSON.stringify()之后,encodeURIComponent() 函数把字符串进行编码。接收时用decodeURIComponent进行解码,后通过JSON.parse()将变量还原。