xlsxworker.js 432 B

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