Fetch objects file

This commit is contained in:
Ian Gulliver
2017-06-12 06:01:58 +00:00
parent 264a25649e
commit d34120be72

View File

@@ -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();
}
}