Switch language
zh
Switch theme
Light
  • phpstorm-`safe-write`

    settings -> appearance&behavior -> system settings -> safe write 该(默认)设置会导致使用 phpstorm 写 taro 时, 变动文件时报 找不到 .jax___hv_temp___ 文件的错
  • Git-Commit-Message-Conventions

    Git Commit Message Conventions Goals auto-generate CHANGELOG.md specify commit-logs of sepcial types (ignore unimportant commits) Format git commit -m "[header]<type>(<scope>):<subject>[/header] [blankline/] [body]<body>[/body] [blankline/] [footer] <breaking changes> <referencing issues> [/footer] " type feat(feature) fix(bug fix) docs(documentation) style(formatting, missing semi colons,…) refactor test(when adding missing tests) chore(maintain) scope Anything specifying place of commit change. For example $browser, $compile, $rootScope… subject(text) Short description of the change. imperative, present tense: “change” not “changed” nor “changes” don’t capitalize first letter not dot(.
  • 正则表达式不包含-xx

    如: http://www.hao123.com/* 不包含 http://www.hao123.com/abc 中有 abc 的情况 // js const str = 'http://www.hao123.com/abc' const reg = /^htpp:\/\/www\.hao123\.com\/(?!abc).*$/ reg.test(str)
  • 微信开发者工具中-xhr-请求-status-200-但-failed-to-load-response-data

    解决办法: 关闭 preserve log 原因: 未知 参考 segmentfault:
  • git-删除-untracted-files-(dirs)

    git clean -fd # 删除 untracked files git clean -f # 连 untracked 的目录也一起删掉 git clean -fd # 连 gitignore 的untrack 文件/目录也一起删掉 (慎用,一般这个是用来删掉编译出来的 .o之类的文件用的) git clean -xfd # 在用上述 git clean 前,建议加上 -n 参数来先看看会删掉哪些文件,防止重要文件被误删 git clean -nxfd git clean -nf git clean -nfd** 转自csdn
  • goland-列编辑模式

    shift + alt + insert 后按鼠标左键上下拖动即可 在 phpstorm 中使用 alt + 鼠标左键 上下拖动可直接进行列编辑模式, 在 goland 中为 alt + shift + 鼠标左键 另: 可 alt + 鼠标左键 单击选中多个光标进行编辑
  • postman-请求参数类型

    查询字符串 路由参数 body 参数 请求头
  • 微信支付获取支付二维码

    未支付时, 可以使用同一个订单号获取二维码 ( 微信支付url ) 信息, 前提是各信息没有改变, 如果 body 等任何一项发生了变化, 那么会报 订单重复. 原文
  • 免费内网穿透工具

    ssh -R 80:localhost:[port] serveo.net 之前用的 natapp, 需要 注册获取 authorize_token, 且免费版不稳定, 域名会经常变化(大概半天自动更换). serveo.net 则方便得多, 一行命令即可, 无需注册, 无需 token 在命令行输入如下指令(其中 [port]可自由更改) ssh -R 80:localhost:[port] serveo.net 之后即会给出一个对应地址, 即可在外部访问. 参考: https://alternativeto.net/software/serveo/ https://www.jianshu.com/p/d0b3991a9ce1
  • npm-install-错误

    npm install –registry=https://registry.npm.taobao.org 原文见: https://blog.csdn.net/weixin_42144379/article/details/86064214
🍀