赞
踩
1.安装插件 papaparse
npm install -S papaparse
2.在导出文件中引入papaparse
import Papa from 'papaparse'
3.制作点击按钮
<el-button type="primary" @click="exportcsv">导出csv文件</el-button>
exportcsv(){
if (this.tableEchart.length > 0) {
var show_fields_list = []
var fieldsmap = {
'__TIMER__': '时间'}
for (let item
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。