表格长上面这个样子
用到了这个
https://cdn.staticfile.org/xlsx/0.15.1/xlsx.core.min.js
插件和jquery 还是蛮好用的。
打出来的数据长这个样子:
代码:
<!DOCTYPE html>
<html>
<head>
<title>echarts 力导向图</title>
<meta charset="UTF-8">
<script type="text/javascript" src="js/jquery-1.9.0.min.js" ></script>
<script type="text/javascript" src="https://cdn.staticfile.org/xlsx/0.15.1/xlsx.core.min.js"></script>
</head>
<body>
<input type="file" id="excel-file">
</body>
<script>
window.onload=function(){