Advertisement
stevennathaniel

Proyek Web Untuk Windows 1

Nov 25th, 2018
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function tampilJSON() {
  2.  
  3.     var xhttp = new XMLHttpRequest();
  4.  
  5.     xhttp.onreadystatechange = function() {
  6.  
  7.         if (this.readyState == 4 && this.status == 200) {
  8.  
  9.             console.log(this.responseText);
  10.  
  11.         }
  12.  
  13.     };
  14.  
  15.     xhttp.open("GET","http://localhost/folderanu/fileanu.php", true);
  16.  
  17.     xhttp.send();
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement