简单来说把 JavaScript 中 es2015/2016/2017/2046 的新语法转化为 es5,让低端运行环境(如浏览器和 node )能够认识并执行。严格来说,babel 也可以转化为更低的规范。但以目前情况来说,es5 规范已经足以覆盖绝大部分浏...
备注:这是在pm2配置node环境下,超过8小时mysql自动关闭的情况下出现的解决方法:1、封装mysql.js
var https=require(“https”);//https服务var fs = require(“fs”)var express = require(‘express’) //这里使用express,你也可以使用koa。var app = express();var options = {key: ...
更多内容请见原文,原文转载自:https://blog.csdn.net/weixin_44519496/article/details/119836208
var https=require(“https”);//https服务var fs= require(“fs”);var Koa = require(‘koa’);var enforceHttps = require(‘koa-sslify’).default;var app = new Koa();app...
var Koa = require(‘koa’);var Router = require(‘koa-router’ );var bodyParser = require(‘koa-bodyparser’);var mysql = require(‘mysql’);var app = new Koa();va...