通过input上传xlsx文件,并绘制成图表,代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="js/jquery.js"></script>
<script src="js/xlsx.core.min.js"></script>
<script src="js/echarts.min.js"></script>
<title>上传excel文件并绘制成图表</title>
</head>
<body>
<input type="file" id="file">
<div id="container" style