配置xspreadsheet vue在线表格
基本配置:
npm install typescript –save-dev
npm install awesome-typescript-loader –save-dev
npm install xspreadsheet –save-dev
npm install less less-loader –save
代码引入:
<div id=”id”></div>
import xspreadsheet from ‘x-data-spreadsheet’
const x = new xspreadsheet(document.getElementById(‘id’))
x.change = (data) => {
console.log(‘data:’, data)
}
版权声明:本文为yiheerya原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。