Fetch objects file
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
|
||||
class TagSlice {
|
||||
constructor(container) {
|
||||
container.innerText = 'test';
|
||||
let xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', 'tagslice.json');
|
||||
xhr.responseType = 'json';
|
||||
xhr.onload = () => {
|
||||
console.log(xhr.response);
|
||||
};
|
||||
xhr.send();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user