Fix: Xhr response text #6

This commit is contained in:
surunzi
2016-05-25 14:48:08 +08:00
parent 9ffee878cf
commit 1f57e45922
2 changed files with 10 additions and 2 deletions

View File

@@ -66,6 +66,11 @@
{
req('http://localhost:3000/test/empty.json');
}, 3000);
var xhr = new XMLHttpRequest();
xhr.responseType = 'arraybuffer';
xhr.open('GET', 'http://localhost:3000/test/data.json');
xhr.send();
</script>
</body>
</html>