天蓬老师2017-04-17 14:49:18
fs.appendFile
Asynchronous, please use fs.appendFileSync
https://nodejs.org/api/fs.htm...
大家讲道理2017-04-17 14:49:18
It is recommended that you concatenate the strings before writing them to the file. . .
阿神2017-04-17 14:49:18
Most nodejs file operation APIs are divided into asynchronous/synchronous (fs.xxx/fs.xxxSync). Just change it to synchronized function content.