2013年3月11日
摘要: 使用fs的appendFile写日志,线上某些机器报TypeError: object is not a function查看报错行内容是fs.appendFile(file , logTxt + "\n") ,看手册上这个调用方法为fs.appendFile(filename, data, encoding='utf8', [callback])貌似调用没什么问题,而且之前代码也运行正常万能google给了答案 》》https://github.com/joyent/node/issues/4352Repeated calls to fs.appendFi 阅读全文
posted @ 2013-03-11 11:40 雨弓 阅读(2353) 评论(1) 推荐(0) 编辑