摘要: 如果您需要批量清理多个没有远程对应分支的本地分支,可以使用以下命令: git fetch --prune && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D 这个命令用于清理本地已经不存在的远程分支。 阅读全文
posted @ 2023-05-06 18:25 cococe 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 如果js删除cookie失败,请检查以下要点: cookie不为httpOnly 删除cookie字段要设置全,字段要保持一致,比如: document.cookie = 'token=xxxx;path=/;domain=.baidu.com;max-age=-1' 如果cookie的domain 阅读全文
posted @ 2023-04-10 16:53 cococe 阅读(26) 评论(0) 推荐(0) 编辑
摘要: nodejs16后,删除了global,要自定义全局属性,需要这样配置 declare global { // eslint-disable-next-line no-var var ENV: 'qa' | 'rel'; namespace NodeJS { interface ProcessEnv 阅读全文
posted @ 2023-03-30 11:47 cococe 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 如果需要跨域请求发送cookie,需要xhr.withCredentials = true; 并且如要设置Access-Control-Allow-Credentials: true 如果设置了Access-Control-Allow-Credentials: true, 那么:Access-Con 阅读全文
posted @ 2023-03-03 10:19 cococe 阅读(540) 评论(0) 推荐(0) 编辑
摘要: 跨域、mac跨域、mac允许跨域 阅读全文
posted @ 2023-03-02 15:44 cococe 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 最新版微信内,已经不用x5内核来渲染页面了,改成xweb,开启调试方法改为: http://debugxweb.qq.com/?inspector=true 微信内,访问这个url即可开启调试 阅读全文
posted @ 2022-06-17 15:29 cococe 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 如题,版本从12.0.1切换到13.0.0后,html生成图片的速度比之前慢了将近一倍,多方查找,发现,启动puppeteer的时候传入了这样的配置: const puppeteer = require('puppeteer'); const browser = puppeteer.launch({ 阅读全文
posted @ 2022-05-09 23:52 cococe 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 场景:页面A通过location.href 跳转到页面B。 安卓和iOS13.5之后是触发的,iOS13.5之后不触发。 可以用window.addEventListener('pageshow', (e) = {});来触发 阅读全文
posted @ 2022-03-09 20:14 cococe 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 手机访问 http://debugtbs.qq.com, 点击【1】清除TBS内核,就可以清除。 点击【2】可以禁用或者恢复使用 阅读全文
posted @ 2022-03-09 14:00 cococe 阅读(962) 评论(0) 推荐(0) 编辑
摘要: chrome浏览器地址栏输入:chrome://flags/#partitioned-cookies 修改成Ennabled 阅读全文
posted @ 2022-02-28 13:58 cococe 阅读(391) 评论(0) 推荐(0) 编辑