下载 npm i xiantou-export-excel -S 使用 click event = function(){ .... const excel = require('xiantou-excel-exports') excel = (filename,title,data) excel = ('xiantou',['编号','姓名'],[ {id:1,name:"a"}, {id:2,name:"b"} ]) ..... }