var str = '{host:"localhost",sourceDir:"d:\\temp"}'; var jsonstr = eval('('+str+')'); alert(jsonstr.host);//localhost 相关文章: