JS 网络请求

<script src="http://code.jquery.com/jquery-latest.js"></script>

get

<script>
   var settings = {
     "async": true,        
     "crossDomain": true,        
     "url": "127.0.0.1",        "
     method": "GET"        
   }
        
   $.ajax(settings).done(function (response) {            
  	alert(response)        
   });    
</script>

你可能感兴趣的:(JS 网络请求)