摘要: 邮箱:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2, 阅读全文
posted @ 2022-03-24 11:05 W-it-H-ou-T 阅读(25) 评论(0) 推荐(0) 编辑
摘要: URLSearchParams 接口定义了一些实用的方法来处理 URL 的查询字符串。 获取 URL 参数 const url = 'http://xxx.com?id=123&name=hello&age=18'; const search = window.location.search; // 阅读全文
posted @ 2022-02-24 11:38 W-it-H-ou-T 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1. Failed to start native messaging host. 1)可能是 native message host 的权限有问题 解决方法: chmod 755 host.js 2)可能是 host.js 中的 node 命令解释器有误 解决方法: 修改host.js 中第一行的 阅读全文
posted @ 2021-12-02 20:29 W-it-H-ou-T 阅读(915) 评论(0) 推荐(0) 编辑
摘要: 在 node 环境下运行 mysql 由于版本不兼容会报如下错误: Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upg 阅读全文
posted @ 2021-07-11 23:59 W-it-H-ou-T 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 创建 venv 环境 python3 -m venv envname 激活虚拟环境 source envname/bin/activate 退出虚拟环境 deactivate 参考: https://www.cnblogs.com/defifind/p/11326434.html 阅读全文
posted @ 2021-07-10 03:37 W-it-H-ou-T 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 例: 主项目地址为: http://xxx.com, 想配置 xxx.com/newproject 为另一个项目 1. 修改 vue.config.js 中的publicPath (publicPath: '/newproject') // 新项目的静态资源打包路径, 如访问 xxx.com/new 阅读全文
posted @ 2021-07-07 11:39 W-it-H-ou-T 阅读(168) 评论(0) 推荐(0) 编辑
摘要: overflow : hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; 阅读全文
posted @ 2021-03-10 15:31 W-it-H-ou-T 阅读(42) 评论(0) 推荐(0) 编辑
摘要: <template> <div :style="styleText" class="div1"> <button @click="handleClick">修改颜色</button></div> </template> <script> export default { data () { retu 阅读全文
posted @ 2021-02-26 16:07 W-it-H-ou-T 阅读(1302) 评论(2) 推荐(0) 编辑
摘要: git clone xxx git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done git fetch --all git pull -- 阅读全文
posted @ 2021-02-08 17:04 W-it-H-ou-T 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 显示 隐藏的文件/文件夹 defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder 隐藏 隐藏的文件/文件夹 defaults write com.apple.finder AppleShowAl 阅读全文
posted @ 2021-01-30 13:33 W-it-H-ou-T 阅读(50) 评论(0) 推荐(0) 编辑