Chuck
Chuck
执行 git pull 提示如下错误: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right...
开发环境配置域名
开发模式下每次都需要输入 IP,实在不太方便。于是通过 switchhosts 配置了如下域名: ```js 127.0.0.1 dev.fe.com ``` 启动服务后,可以通过域名访问项目,但是还需要跟上端口号。为了隐藏端口号,需要在 nginx 配置信息: ```js server { listen 80; server_name dev.fe.com; location / { root html; index index.html index.htm; proxy_pass http://127.0.0.1:8081/; } }...
有这样一段代码: ```js let t1 = setTimeout(() => { console.log(1) let t2 = setTimeout(() => { console.log(2) let t3 = setTimeout(() => { console.log(3) }, 3000) }, 2000) }, 1000) ```...
## Request header Host :主机ip地址或域名 User-Agent :客户端相关信息,如果操作系统、浏览器等信息 Accept :指定客户瑞接收信息类型,如: image/jpg, text/html, application/json Accept-Charset :客户端接受的字符集,如Igb2312、1s0-8859-1 Accept -Encoding :可接受的内容编码,如gzip Accept - Language 接:受的语言,如Accept-Language :zh-cn Authorization :客户端提供给服务端,进行权限认证的信息 Cookie :携带的cookie信息 Referer :当前文档的URL,即从哪个链接过来的 Content-Type :请求体内容类型,如content-Type:...
- [传送门](https://wenku.baidu.com/view/02e941355aeef8c75fbfc77da26925c52cc591e5.html?_wkts_=1668152279621&bdQuery=var+o+%3D+%7B+1%3A+1%2C+2%3A+2%2C+length%3A+2%2C+push%3A+Array.prototype.push%2C+pop%3A+Array.prot)
- [IIFE](https://blog.csdn.net/weixin_46112649/article/details/126376367) - [[JS---函数名和变量名重名](https://www.cnblogs.com/taohuaya/p/11129729.html)](https://www.cnblogs.com/taohuaya/p/11129729.html)
```js class Queue { constructor () { this.tasks = [] } task (time, fn) { this.tasks.push({ fn, time }) return this } async start () { for (const item of...
[[中文版模板 / Chinese template](https://github.com/alibaba/hooks/blob/master/.github/PULL_REQUEST_TEMPLATE/pr_cn.md)] ### 🤔 This is a ... - [x] New feature - [ ] Bug fix - [ ] Site / documentation update - [ ] Demo...
用于在移动端监听手势划动,便于处理上下左右划动时对应的操作。 ## API ```ts interface Options { threshold?: number; // 最小划动距离 maxTime?: number; // 快速划动最长时间 onSwipeLeft?: (event: TouchEvent) => void; onSwipeRight?: (event: TouchEvent) => void; onSwipeUp?: (event: TouchEvent) => void;...