a1/fetch.js

7 lines
146 B
JavaScript

const url = "http://localhost/p20/get.php"
fetch(url)
.then(response => response.json())
.then(data => {
console.log(data)
})