var fs = require('fs') fs.open('../src/urls.js', 'w+', function(err, fd) { fs.write(fd, 'const DEV = false\r\n', 0, function(err, bytes) { }) })
这段代码在执行时为什么会提示TypeError:First argument must be file descriptor
,明明fd就是open传过来的descriptor啊?求解
LEATH
相关分类