2012-11-05 63 views

回答

0

試試這個。可能是這將有助於you.becouse我已經做web服務ü使用此

<script type="text/javascript"> 

     $(function() { 
      var url = "http://localhost/newed/WebService.asmx/GetList?format=json"; 
      $.ajax({ 
       contentType: "application/json; charset=utf-8", 
       url: url, 
       dataType: "jsonp", 
       success: function (r) { 
        var i = 0; 
        for (i = 0; i < r.d.length; i++) { 
         alert(r.d[i]["firstName"].toString()); 

        } 
       }, 

       error: function (xr, msg, e) { debugger; alert(e); } 
      }); 
     }); 

+0

感謝,但我wan't使用SOAP ......... – Yuvi