简体   繁体   中英

how to use xlsx library to parse excel files within the browser

I'm currently using xlsx library as a node module on the server, to parse Excel files. From reading XLSX github page, it sounds like xlsx can also be used right within the actual browser to do this parsing without making any xhr calls to the server.

I could not find any examples of actually doing that.

There is an in-browser parsing demo here: http://oss.sheetjs.com/

but I do not see any examples of how that actually done.

Could someone point me to the right direction, please?

As it turns out, I was not looking well enough. I did fine the HTML5 parsing examples right on the github page. Now, that I'm trying that, I get this "Uncaught SyntaxError: Unexpected token <" error, but I will open a separate question for that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM