diff --git a/ajax.html b/ajax.html index 54d483e..8781c59 100644 --- a/ajax.html +++ b/ajax.html @@ -64,9 +64,7 @@ if(typeof Uint8Array !== 'undefined') { if(typeof console !== 'undefined') console.log("onload", new Date()); var arraybuffer = oReq.response; var data = new Uint8Array(arraybuffer); - var arr = new Array(); - for(var i = 0; i != data.length; ++i) arr[i] = String.fromCharCode(data[i]); - var wb = XLSX.read(arr.join(""), {type:"binary"}); + var wb = XLSX.read(data, {type:"array"}); process_wb(wb); }; } else { diff --git a/index.html b/index.html index d969fd6..9fe5010 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@
-