摘要:
箭头函数和This 基本语法 “箭头”(=>)定义函数 let fn =name => name; console.log(fn(Mr.Lee)); 普通函数代码 let fn=function (name){ return name; }; 由此可见,箭头函数语法更简洁 箭头函数的参数 使用箭头符 阅读全文
posted @ 2021-11-25 22:37
.Nice
阅读(104)
评论(0)
推荐(0)
摘要:
Koa的基本使用 1、初始化package.json npm init 2、安装Koa2 npm install koa 3、hello代码 1 // 引入对象 2 const Application = require('koa'); 3 const Koa = require('koa'); 4 阅读全文
posted @ 2021-11-25 10:34
.Nice
阅读(166)
评论(0)
推荐(0)

浙公网安备 33010602011771号