GitHub Copilot could not connect to server. Extension activation failed: "connect ETIMEDOUT 20.205.243.168:443" 解决办法:1、通过网站https://www.ipaddress.com/ip-lookup,分别查找github.com、api.github.com、copilot.github.com,的IP地址2、打开C:\Windows\System32\drivers\etc目录下的hosts文件,添加上一步得到的ip到hosts文件中。140.82.1… 2023-09-03 403 缓存 https http
http转https <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">名词解释CSP(Content-Security-Policy):… 2023-03-09 357
防抖、节流 /*函数节流*/ throttle(fn, interval) { var enterTime = 0;//触发的时间 var gapTime = interval || 300 ;//间隔时间,如果interval不传,则默认300ms return function() { var context = this; var … 2023-03-04 349 节流 防抖
nginx静态资源配置 location ~* \.(jpg|jpeg|gif|png|swf|rar|zip|css|js|map|svg|woff|ttf|txt)$ { root /www/wwwroot/项目目录/www/; etag on; expires max; }… 2023-03-04 323 静态资源 Nginx
css中的filter属性 css中的filter函数总结filter:invert(1);数值范围0-1,一般用来调整图片边框的渲染filter:grayscale(1);调整元素的灰度值,数值范围0-1filter:blur(10px); 调整元素的模糊程度,单位像素pxfilter:sepia(0.5);用来调整元素的褐色程度,数值范… 2023-02-27 231 filter css
中英文网站nginx伪静态配置 location / { try_files $uri $uri/ /index.php?$args; } location /en { try_files $uri $uri/ /en/index.php?$args; }… 2023-02-23 209 伪静态 Nginx
后端调用微信登录提示错误errmsg: 'appid missing, errcode:41002 后端调用微信登录提示错误errmsg: 'appid missing, errcode:41002可能错误的原因是后端请求小程序接口时,参数是写在data{...}对象中的。解决办法是在url后面拼接字符串。如:https://api.weixin.qq.com/sns/jscode2session?appid=AP… 2023-02-23 251 小程序 登录 bug