仿电子表格JavaScript库,可用于添加/删除/编辑/显示数据表就像电子表格中的数据。添加一个表格const example = Spreadsheet('#example'); example.createSpreadsheet( { bank: 'text', 'cash ($)': 'number', 'credit debt ($)': 'number', 'investment portfolio ($)': 'number', city: 'text', 'dated opened': 'date', }, { // configs here } );添加数据 { data: [ ['TD', '10000', '1000000', '34535', 'Toronto', '2021-04-06'], ['RBC', '50000', '325345', '76868', 'Markham', '2020-06-22'], ['AmEx', '10000000', '5644', '76054', 'New York City', '2020-07-06'], ], }指定行数rowCount: 4本地存储persistent: true提交回调方法submitCallback: (tableArray) => alert(`Your table is currently ${tableArray.length} rows long!`), }添加颜色example.addCellStyle(cellValue, color); // 或者 example.addCellStyleSheet({ cellValue1: color1, cellValue2: color2, // ... })
文件目录······
暂无数据
猜你喜欢
更多»
项目推荐
更多»
PDF电子书
更多»
Java多线程编程核心技术
(2)
Linux命令详解词典.pdf
(5)
深入Python3中文版
(0)
百度SEO一本通.pdf
(0)
mysql必知必会.pdf
(2)
疯狂JAVA讲义 pdf电子书
(3)
C# 图解教程pdf电子书
(3)
研磨设计模式 pdf电子书
(0)