我想要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