Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Liu Tianqing tianqing617

💭
I may be slow to respond.
  • Shanghai, China
View GitHub Profile
@rswanderer
rswanderer / .eslintrc-parameter-instruction.js
Last active Sep 17, 2021
ESLint配置文件.eslintrc参数说明
View .eslintrc-parameter-instruction.js
/*
* ESLint的JSON文件是允许JavaScript注释的,但在gist里显示效果不好,所以我把.json文件后缀改为了.js
*/
/*
* ESLint 配置文件优先级:
* .eslintrc.js(输出一个配置对象)
* .eslintrc.yaml
* .eslintrc.yml
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active Sep 22, 2021
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel10k

Powerlevel10k

@zxhfighter
zxhfighter / nginx-405.md
Last active May 27, 2021
Nginx将静态文件响应POST请求,提示405错误问题
View nginx-405.md

Nginx的405错误

绝大多数服务器,都不允许静态文件响应POST请求(GET请求静态文件是天经地义的),否则会返回HTTP/1.1 405 Method not allowed错误。

然而在前端开发中,前端开发工程师经常模拟后端请求,返回静态数据来查看页面效果,怎么办?

目前有两种方案解决:

方案一:修改配置文件nginx.conf(推荐