2016
09-06
09-06
NodeJs追加内容到文件
覆盖文件:
fs.writeFile('log.txt', 'Hello Node', function (err) {
if (err) throw err;
console.log('It\'s saved!');
}); // => message.txt erased, contains only 'Hello Node'
自己的答案:
var log = fs..... Read More >