I loaded
[
^] into 2 projects and use it to load Excel file. The code is
var workbook = XLSX.read(data, { type: 'binary' });
In one project, I works fine, through debugging
<pre>XLSX.read
function Wg(e,r){l();if(typeof ArrayBuffer!=="undefined"&&e instanceof ArrayBuffer)return Wg(new Uint8Array(e),r);var t=e,a=[0,0,0,0],n=false;var i=r||{};if(i.cellStyles){i.cellNF=true;i.sheetStubs=true}lu={};if(i.dateNF)lu.dateNF=i.dateNF;if(!i.type)i.typ
__proto__:
function() {
[native code]
}
arguments: null
caller: null
length: 2
prototype: {...}
But In another project, I goes failure, through debugging
XLSX.read
function readSync(data, opts) {
reset_cp();
if(typeof ArrayBuffer !== 'undefined' && data instanceof ArrayBuffer) return readSync(new Uint8Array(data), opts);
var d = data, n = [0,0,0,0], str = false;
var o = opts||{};
if(o.cellStyles) { o.cellNF = tr
__proto__:
function() {
[native code]
}
Those show that the XLSX.read function are called different in the 2 projects. How can the method be correctly called? Thanks.
What I have tried:
Tried in multiple ways but unsuccessful.