<script id="jquery_183" type="text/javascript" class="library" src="http://runjs.cn/js/sandbox/jquery/jquery-1.8.3.min.js"></script>
<script>
function loadXML(){
$.get( "1.xml?id=" + escape(document.getElementById("id").value),function(a){
alert($(a).find('bt').html())
})
}
</script>
<body onload="loadXML()">
<input name="id" type="hidden" id="id" value="测试">
<span id="show_wid"></span>
<br />
<span id="show_bt"></span>
<br />
<span id="show_url"></span><br />
</body>

解决方案 »

  1.   

    首先感谢slwsss回复,slwsss你 是不是没有没有看清楚问题。
      

  2.   

    $.get( "1.xml?id=" + escape(document.getElementById("id").value),function(a){
    alert($(a).find('bt').html())
    })
    这样不能读取到吗
      

  3.   

    xml格式问题 用jquery处理吧兼容性好点
    - <nr_a>
    - <nr>
    前面的-去掉
      

  4.   

    是 1.asp 不是1.xml  ,1.xml可以我的代码就可以。是获取 1.asp  获取不到