当前位置:   article > 正文

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received 29

typeerror [err_invalid_callback]: callback must be a function. received 29

错误图片
解决方法:把上面的代码替换成下面的就可以了

//fs.write(fd, buf, 0, buf.length, 0, function(err, written, buffer) {});
fs.write(fd, buf, 0, 'utf-8', function(err, written, buffer) {});
  • 1

  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/324725
推荐阅读
相关标签
  

闽ICP备14008679号