x-spreadsheet网页版excel表格编辑器代码
时间:2019-11-15 10:34:41 来源:网络收集 作者:不详 点击:次
源码授权:
免费特效
运行环境:
其他特效
源码大小:
89.9 KB
普通会员
x-spreadsheet是一款原生js制作的网页版excel表格编辑器代码,在线编辑excel表格,功能还是挺全面的。![]() js代码 <script> function load(){ x.spreadsheet('#x-spreadsheet-demo') .loadData({ freeze: 'C3', styles: [ { bgcolor: '#f4f5f8', textwrap: true, color: '#900b09', border: { top: ['thin', '#0366d6'], bottom: ['thin', '#0366d6'], right: ['thin', '#0366d6'], left: ['thin', '#0366d6'], }, }, ], merges: [ 'C3:D4', ], rows: { 1: { cells: { 0: { text: 'testingtesttestetst' }, 2: { text: 'testing' }, }, }, 2: { cells: { 0: { text: 'render', style: 0 }, 1: { text: 'Hello' }, 2: { text: 'haha', merge: [1, 1] }, } }, 8: { cells: { 8: { text: 'border test', style: 0 }, } } }, }).change((cdata) => console.log(cdata)); } </script> <script type="text/javascript" src="xspreadsheet.js"></script></body> |