Switch language
zh
Switch theme
Light
  • 01-基本概念

    定义 数据结构: 数据之前的关系 算法定义: 解决问题的程序 数据结构分类 物理结构: 数据在存储设备上的存储方式. 又可分为 顺序存储(如 数组, 元素的存储位置是递增相邻的) 和 链式存储(由指针指示下一个数据的存储位置, 位置随机) 逻辑结构: 由代码表示的数据结构. 又可分为 集合, 链式结构, 树状结构(二叉树), 图状结构 算法复杂度: 时间复杂度 + 空间复杂度 时间复杂度, 指算法(程序代码)运行所耗的时长, 用 O() 表示 空间复杂度, 指算法(程序代码)运行所耗的内存 算法的特性 输入输出, 0个或多个输入, 至少1个输出 有穷性, 在有限的步骤内结束, 而不会无限循环(死循环) 确定性, 每一步骤有确定的含义, 不会出现二义性. 相同的输入, 只能输出相同的结果. 可行性, 每一步都是可行的.
  • 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
🍀