摘要:
邮箱:/^(([^<>()\[\]\\.,;:\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, 阅读全文
摘要:
URLSearchParams 接口定义了一些实用的方法来处理 URL 的查询字符串。 获取 URL 参数 const url = 'http://xxx.com?id=123&name=hello&age=18'; const search = window.location.search; // 阅读全文
摘要:
1. Failed to start native messaging host. 1)可能是 native message host 的权限有问题 解决方法: chmod 755 host.js 2)可能是 host.js 中的 node 命令解释器有误 解决方法: 修改host.js 中第一行的 阅读全文
摘要:
在 node 环境下运行 mysql 由于版本不兼容会报如下错误: Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upg 阅读全文
摘要:
创建 venv 环境 python3 -m venv envname 激活虚拟环境 source envname/bin/activate 退出虚拟环境 deactivate 参考: https://www.cnblogs.com/defifind/p/11326434.html 阅读全文
摘要:
例: 主项目地址为: http://xxx.com, 想配置 xxx.com/newproject 为另一个项目 1. 修改 vue.config.js 中的publicPath (publicPath: '/newproject') // 新项目的静态资源打包路径, 如访问 xxx.com/new 阅读全文
摘要:
overflow : hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; 阅读全文
摘要:
<template> <div :style="styleText" class="div1"> <button @click="handleClick">修改颜色</button></div> </template> <script> export default { data () { retu 阅读全文
摘要:
git clone xxx git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done git fetch --all git pull -- 阅读全文
摘要:
显示 隐藏的文件/文件夹 defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder 隐藏 隐藏的文件/文件夹 defaults write com.apple.finder AppleShowAl 阅读全文