![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
node+koa服务器开发
卤鸽子
一个只会写bug的卤鸽子
展开
-
node+koa框架开发服务器之SQL封装以及redis
let db = {}; const mysql = require("mysql"); // const pool = mysql.createPool({ // host: '180.76.240.87', // user: 'koa', // password: 'koa_123456', // database: "koa", // multipleStatements: true // }); const pool = mysql.createPool({ host: "l原创 2021-06-08 09:58:34 · 270 阅读 · 0 评论 -
node+koa框架开发服务器之定时器
定时器 app.js /** * 定时任务 */ const schedule = require('node-schedule') const script = require('./util/script') /** 定义规则,cron表达式*/ // * * * * * * // ┬ ┬ ┬ ┬ ┬ ┬ // │ │ │ │ │ | // │ │ │ │ │ └ day of week (0 - 7) (0 or 7 is Sun) // │ │ │ │ └───── month (原创 2021-06-08 09:39:12 · 1666 阅读 · 0 评论