function showSearchResult( xconn, oReq ){
      var s;  
eval("s = " + xconn.responseText); 
        alert (s.website_code);    }

解决方案 »

  1.   

        function showSearchResult( xconn, oReq ){
          var s;  
          s = eval(xconn.responseText); 
          alert (s.website_code);    }
    试一试
      

  2.   

    var s = eval('(' + xconn.responseText + ')');
      

  3.   

    2楼的当 responseText = '{}';时会失效
      

  4.   

    你先把xconn.responseText输出一下,看2种浏览器是不是一样的值
      

  5.   

    xconn.responseText的输出就是这个JSON字符串:{"website_id":"1","website_code":"21cn","keyword_list":[{"keyword_id":"28","keyword_content":"21cn","search_flag":"1"},{"keyword_id":"32","keyword_content":"法国","click_link":"www.cccn.com","pop_link":"www.test1.com","pop_properties":"100*250","search_flag":"1","search_link":"www.test.com"}]} 
      

  6.   

    我很有兴趣知道里面是什么东东,你这样子试试 function showSearchResult( xconn, oReq ){
            eval("var s = " + xconn.responseText); 
            alert (s); //看是否 [object object]
            for(var n in s)
            {
              alert(n + ":" + s[n]); 
            }    }看看结果是什么,贴上来再看看
      

  7.   

    alert出来的就是那串JSON字符串 ,现在又可以了 ,谢谢大家