基本配置:
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)
}