预执行脚本中读取本地csv文件的方法失效,无法获取数据 var data = fs.readFileSync('/Users/Downloads/data_test.csv', 'utf-8');
尝试定义
// const fs = apt.fs
// const data = fs.readFileSync('/Users/Downloads/data_test.csv','utf-8')(报错无效方法readFileSync)
// const csvcontent = apt.readFile('/Users/Downloads/data_test.csv') (报错TypeError: apt.readFile is not a function)
console.log(csvcontent)
// let data = apt.execute('/Users/Downloads/data_test.csv')(现在客户端提供的是执行外部脚本获取数据)
fs语法目前不能用了 换个别的语法吧
请问下那个语法可以替换fs语法