reference
This commit is contained in:
908 files changed
+93185
No files matched your search
@@ -0,0 +1,17 @@
|
||||
function loadCourses() {
|
||||
const xhttp = new XMLHttpRequest();
|
||||
xhttp.onload = function() {
|
||||
document.getElementById("coursesTarget").innerHTML =
|
||||
this.responseText;
|
||||
}
|
||||
xhttp.open("GET", "api/courses");
|
||||
xhttp.send();
|
||||
|
||||
}
|
||||
|
||||
async function loaddata() {
|
||||
let response = await fetch("/api/stuff").then(response => response.json());
|
||||
console.log(response);
|
||||
}
|
||||
|
||||
loadCourses();
|
||||
Reference in new issue
Block a user