ajax 使用jquery处理返回的xml
?
?上面得注意
<script type="text/javascript"> $(document).ready(function(){$.ajax({ type: "GET", url: "buildTreeDictionary.action", success: function(data){ d = new dTree('d');d.config.target = "mainFrame2"; $(data).find('item').each(function(){ var name = $(this).find('name').text(); var id = $(this).find('id').text(); var pid = $(this).find('pid').text(); d.add(id,pid,name,'editNodeDictionary.action?nodeId='+id); }); //alert("============="+d); // alert(d.toString()); $("#dtree2").html(d.toString());}}); });</script>?