草庐IT

MobileConfiguration

全部标签

javascript - 使用 javascript 和 ajax 解析 web 服务的 xml 响应

我需要在ajax中解析web服务返回的xml响应,这是我的代码,'response'是web服务返回的响应,我如何创建一个xml对象并解析它?$.ajax({type:'POST',url:'webservicelink',dataType:'xml:lang',success:function(response){//howtoparsetheresponsehere},error:function(error){console.log(error);}});这是我的XML代码:;1STMaxDownloadSize1320002ZoomingThresholdValue14