js 如何把JSON格式的字符串转换为JSON对象 直接用eval函数。例:var str1 = '{ "url": "www.51qdq.com", "name": "js" }';eval('('+str1+')');注意括号和单引号都不能少哦。