test.html 573 B

123456789101112131415161718192021
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:wb="http://open.weibo.com/wb" style="overflow: hidden;">
  3. <head>
  4. <script src="./js/xlsx.js" type="text/javascript"></script>
  5. <script src="./js/excel.js" type="text/javascript"></script>
  6. <script>
  7. async function test(inputel) {
  8. var test = await exceltoxlxstream(inputel.files[0]);
  9. console.log(test)
  10. }
  11. </script>
  12. </head>
  13. <body>
  14. <input type="file" name="excel" id="excel" value="new test" onchange="test(this)" />
  15. </body>
  16. </html>