instruction
stringlengths 2
15
| input
stringlengths 0
93
| output
stringlengths 14
121
|
---|---|---|
切换输入法为英文 | {_hex:'0x0409'} | MR.System.inputer({_hex:'0x0409'}) |
读取Excel文件 | {_filename:'d:/test.xlxs'} | const workbook = MR.Excel.open({_filename:'d:/test.xlxs'}) |
保存Excel文件 | {_filename:''} | MR.Excel.write({_filename:''}) |
获取Sheet长度范围 | {_sheetname:''} | const _xls_3f4jhdk = MR.Excel.size({_sheetname:''}) |
读取Sheet数据 | {_sheetname:'sheet1',_type:'json'} | const sheetData = MR.Excel.getData({_sheetname:'sheet1',_type:'json'}) |
增加新Sheet数据 | {_data:[],_sheetName:'newsheet',_type:'aoa'} | MR.Excel.addSheet({_data:[],_sheetName:'newsheet',_type:'aoa'}) |
读取指定行数据 | {_row:1} | const rowArr = MR.Excel.row({_row:1}) |
读取指定列数据 | {_column:'A'} | const columnArr = MR.Excel.column({_column:'A'}) |
读取修改指定单元格数据 | {_pos:'A1'} | const _xls_frd492k = MR.Excel.cell({_pos:'A1'}) |
删除指定行 | {_row:1} | MR.Excel.deleteRow({_row:1}) |
清空指定行 | {_row:1} | MR.Excel.clearRow({_row:1}) |
删除指定列 | {_column:'A'} | MR.Excel.deleteColumn({_column:'A'}) |
清空指定列 | {_column:'A'} | MR.Excel.clearColumn({_column:'A'}) |
设置公式 | {_range:'C1',_formula:'SUM | MR.Excel.formula({_range:'C1',_formula:'SUM(A1:A3*B1:B3)'}) |
构建样式 | const _xls_ge5s9hi = MR.Excel.buildStyle() |
|
获取所有Sheet名称 | const sheetNames = MR.Excel.sheetNames() |