1.安装
npm i js-export-excel
2.使用
//导入ExportJsonExcel包
const ExportJsonExcel = require("js-export-excel");
//表头1
const columns1: any = [
{
title: "姓名", dataIndex: "region" },
{
title: "性别", dataIndex: "accountingSubject" }
1.安装
npm i js-export-excel
2.使用
//导入ExportJsonExcel包
const ExportJsonExcel = require("js-export-excel");
//表头1
const columns1: any = [
{
title: "姓名", dataIndex: "region" },
{
title: "性别", dataIndex: "accountingSubject" }