From a27c77ae0ecae60efdefeb4b30d7c01d353e0874 Mon Sep 17 00:00:00 2001 From: altkatz Date: Tue, 3 Jun 2014 15:17:38 +0800 Subject: [PATCH] add es5-shims for non ES5 browsers --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 73227f8..c38786f 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,11 @@ An appropriate version for each dependency is included in the dist/ directory. The complete single-file version is generated at `dist/xlsx.full.min.js` +## ECMAScript 5 compatibility + +Since xlsx.js uses ES5 functions like ```forEach()``` ```map()```, in ancient browsers [Polyfills](https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills) such as [es5-shim](https://github.com/es-shims/es5-shim) is needed. You may add a line before use xlsx.js: +`````` + ## Parsing Workbooks For parsing, the first step is to read the file. @@ -175,7 +180,7 @@ Complete examples: - generates a simple file - writing an array of arrays in nodejs - + ## Interface `XLSX` is the exposed variable in the browser and the exported nodejs variable