1.clear():清空數據
2.createCol(index,amount,createAutomatically):添加列
index:列索引,amount:添加的列總數,createAutomatically:為一個數字
removeCol(index,amount):刪除列
createRow(index):添加行
removeRow(index,amount):刪除行
3.get(row,prop):根據行號和屬性索引獲取單元格的值
getAll():獲取所有的數據
getCopyable(row,prop):根據行號和屬性索引獲取單個單元格的值
getCopyableText(start,end):獲取被選擇位置的值
satrt:開始選擇的位置對象,end:結束選擇的位置對象
getRange(start,end,destination):根據坐標獲取數據
satrt:開始選擇的位置對象,end:結束選擇的位置對象,destionation:目的地map索引
getText(start,end):獲取目標位置的數據
4.set(row,prop,value,source):設置單個單元格的值
row:行索引,prop:列索引,value:新值,source:hook插件的提供者
5.spliceCol(col,index,amount):添加或移除列數據
col:列索引,index:開始改變的數組索引,amount:改變數據的個數
spliceRow(row,index,amount):添加或刪除行數據
row:行索引,index:開始改變的數組索引,amount:改變數據的個數