我正在使用electron + angularjs。当我使用id3js从mp3文件读取标签时,我开始得到DeprecationWarning: Calling an asynchronous function without callback is deprecated.
的问题。DeprecationWarning:不使用回调调用异步函数已弃用
id3({file: pathtofile,type: id3.OPEN_LOCAL}, function(err, tags) {
if (err) {
console.log(err);
} else {
console.log(tags);}
});
代码retun从MP3文件的标签,但继续产生这种弃用警告
你的问题是什么? –
我想知道为什么我得到这个错误,以及如何解决它 –
[DeprecationWarning:调用异步函数而不回叫已被弃用。 - 如何找到“功能:”是什么?](https://stackoverflow.com/questions/41195580/deprecationwarning-calling-an-asynchronous-function-without-callback-is-depreca) – Mistalis