摘要: 由于部分浏览器不支持ES6语法,为了让项目更具兼容性,可通过babel将ES6转成更低版本的ES //npm install --save-dev babel-preset-es2015 //npm install --save-dev babel-cli //.balbelrc 配置文件 { "p 阅读全文
posted @ 2021-03-12 17:01 cloudAlexander 阅读(48) 评论(0) 推荐(0)
摘要: //导入包 const http = require("http"); const { Http2ServerRequest } = require("http2"); //1:创建一个服务 http.createServer(function (request, response) { //浏览器 阅读全文
posted @ 2021-03-12 09:23 cloudAlexander 阅读(567) 评论(0) 推荐(0)
摘要: //先下好包 npm install mysql const { connect } = require("http2"); //导包 var mysql = require("mysql"); //创建连接 var connetction = mysql.createConnection({ ho 阅读全文
posted @ 2021-03-12 09:18 cloudAlexander 阅读(154) 评论(0) 推荐(0)
摘要: MarkDown 学习 标题 hello word!hello word!hello word!hello word!hello word!hello word!hello word! hello word!hello word!hello word!hello word!hello word!he 阅读全文
posted @ 2021-03-10 16:00 cloudAlexander 阅读(19) 评论(0) 推荐(0)