摘要: 临时加入忽略文件未生效 gitignoregit rm -r --cached . git add . git commit -m 'update .gitignore' 查看git config、用户名、邮箱 git config --list git config user.name git c 阅读全文
posted @ 2020-11-16 13:46 张胖胖-007 阅读(47) 评论(0) 推荐(0)
摘要: //koa web 框架 const Koa = require('koa'); //koa-router 创建路由 const Router = require('koa-router'); //中间件 配置pug模板 const views = require('koa-views'); //获 阅读全文
posted @ 2020-11-14 21:31 张胖胖-007 阅读(270) 评论(0) 推荐(0)
摘要: 1.Promise 基本特性 1. Promise有三种状态:pending(进行中),fulfilled(resolve)(已成功),reject(已失败). 2. Promise对象接受一个回调函数作为参数,该回调函数接受两个参数,分别是成功时的回调resolve和失败时的回调reject;另外 阅读全文
posted @ 2020-11-12 13:38 张胖胖-007 阅读(487) 评论(1) 推荐(1)
摘要: dotnet core 命令 dotnet 命令本身,可以使用dotnet app.dll 运行使用 dotnet build 生成dotnet core 应用程序 dotnet clean 清理项目生成的输出 dotnet new 为给定的模板初始化C#或F#项目 dotnet pack 创建代码 阅读全文
posted @ 2020-11-09 17:41 张胖胖-007 阅读(244) 评论(0) 推荐(0)
摘要: 1.防抖: 。原理:在事件被触发N秒以后在执行回调,如果在这N秒之内再次触发,则重新计算。 。使用场景: 。按钮提交场景:防止多次提交按钮,只执行最后一次。 。搜索框联想场景:防止连续发送请求,只发送N秒后的最后一次。 简易版实现 const btnEle = document.querySelec 阅读全文
posted @ 2020-11-09 16:09 张胖胖-007 阅读(211) 评论(1) 推荐(2)