1、encodeURIComponent() 函数 作用:可把字符串作为URI 组件进行编码。 2、将字符串转换为json对象 var data = eval('(' + responseStr + ')');