Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在本地作品中厌倦了下面的代码,但在heroku中却没有,有人知道原因吗?
var mob = req.body.phone + " \n"; fs.appendFile("phone.txt", mob, function(err){ if (err) throw err; });
您不能修改 heroku 中的文件。请改用数据库。