1 Star 0 Fork 62

镇长先生/webfunny_monitor

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
config_db_local.js 429 Bytes
Copy Edit Raw Blame History
var fs = require('fs');
fs.writeFile('./config/db.js', "", (err) => {
if (err) throw err;
console.log("数据库配置文件清理完成!");
fs.readFile('./config/db_local.js', function(err, data){
let newString = data.toString();
fs.writeFile('./config/db.js', newString, (err) => {
if (err) throw err;
console.log("数据库配置重写完成!");
});
})
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/linksbbshjh/webfunny_monitor.git
git@gitee.com:linksbbshjh/webfunny_monitor.git
linksbbshjh
webfunny_monitor
webfunny_monitor
master

Search