CSV Creator
建立 CSV 格式檔案
最后更新于
这有帮助吗?
建立 CSV 格式檔案
最后更新于
这有帮助吗?
这有帮助吗?
// 讀取工作資料夾中 row-name.txt row-price.txt 的值
let name = input['row-name']
console.log('name:', name)
let price = input['row-price']
console.log('price:', price)// 新增資料列,資料來自工作資料夾內的檔案,讀取部分參考上方範例
output.push({
name : name,
price : price,
tax: price * 0.05
})
// 指定表頭欄位,順序由左至右
output.header.push('name','price','tax')