我想要jquery或javascript代碼從excel中獲取數據並將它們添加到jquery中的數組中。 例子: 在 「A」 列有姓名, Kasun 修女 GEMBA 約翰如何將excel表格中的數據導入到javascript(jquery)數組中
而且我想,然後添加到 瓦爾名= [ 'Kasun', '修女', 'GEMBA',」約翰']
這是我試過的。在這裏,我將excel的所有數據都存入#res div。但我想他們都得到一個數組
alasql('SELECT * into html("#res") from xlsx("excel.xlsx")');
<script type="text/javascript" src="js/alasql.min.js"></script>
<script type="text/javascript" src="js/xlsx.core.min.js"></script>
<div id="res"></div>
你嘗試過什麼碼?你得到什麼錯誤?電子表格從哪裏來? – Arcath