xwt
15 小时以前 8957921b34cb2e108d3fd6013e1266486c96bfb3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
importScripts('dist/shim.min.js');
/* uncomment the next line for encoding support */
importScripts('dist/cpexcel.js');
importScripts('xlsx.js');
postMessage({t:"ready"});
 
onmessage = function (evt) {
  var v;
  try {
    v = XLSX.read(evt.data.d, {type: evt.data.b});
postMessage({t:"xlsx", d:JSON.stringify(v)});
  } catch(e) { postMessage({t:"e",d:e.stack||e}); }
};