我无法将 Papa 错误对象放入我的错误处理程序中。我的解析突然停止工作,我只想弄清楚为什么/发生了什么变化!我使用下面的代码来解析它:
Papa.parse(path, {download: true, header: true, complete: ListifyCSVData, error: CSVParseError});
我的 CSVParseError 函数被调用。但错误对象未定义:
CSVParseError = function(err, file){
alert("Unable to process CSV file, please verify the file can be accessed and try again. Error reason was: " + err.code);
}
请问有人对这里可能出现的问题有任何提示吗?
谢谢您的帮助。
格伦