06 2021 档案
摘要:Mac 自定义可执行脚本 新建文件夹sh mkdir sh 创建自定义sh touch pull.sh touch push.sh 写入内容 #!/bin/bash # 一次性处理git拉取 #branch_name=`git symbolic-ref --short -q HEAD` branch
阅读全文
摘要:跳转按钮 <el-button type="primary" size="medium" icon="el-icon-s-grid" @click="handleToAcreage(floorInfo)">房屋面积管理</el-button> 跳转新的页面方法 handleToAcreage(row
阅读全文
摘要:<i class="el-icon-s-grid" ></i> <template> <i class="el-icon-edit"></i> <i class="el-icon-share"></i> <i class="el-icon-delete"></i> <el-button type="
阅读全文
摘要:启动 % brew services start php@5.6 ==> Successfully started `php@5.6` (label: homebrew.mxcl.php@5.6) jiqing@jiqingdeMacBook-Pro nginx % ps -ef | grep ph
阅读全文
摘要:如何增加一个查询数据库的select data中加一个变量 buildingTypeList: [] 初始化的时候获取内容 created() { // 获取楼栋类型 this.getBuildingTypeList(); } // 添加方法 getBuildingTypeList() { getB
阅读全文
摘要:有时候,双击到shift,就会自动弹出搜索全部。非常的烦人。 command + shift +A 输入registry 找到下面的内容 后面打钩,然后点击close。
阅读全文
摘要:https://www.spectacleapp.com/
阅读全文
摘要:CREATE TABLE `property_fee_config` ( `id` int(10) NOT NULL AUTO_INCREMENT, `village_id` int(11) NOT NULL COMMENT '小区id', `building_type_ids` text NOT
阅读全文
摘要:先卸载 brew安装的node,避免与n安装的node冲突 brew uninstall node 然后安装 n brew install n 通过n 安装不同版本的node sudo n 16.3 sudo n 14.17.0 查看n % n list node/14.17.0 node/16.3
阅读全文
摘要:node-sass 6.0.0版本与^4.0.0不兼容 1、先卸载之前版本的node-sass npm uninstall node-sass 2、卸载后安装4.0.0版本 npm install node-sass@4.14.1 tips:4.14 要求node版本要为14,高版本的node,可能
阅读全文
摘要:<script type="text/javascript"> function download() { // 判断是否是微信内 var u = navigator.userAgent; var isWeixin = !!/MicroMessenger/i.test(u); if (isWeixi
阅读全文
摘要:vue后台开发 添加路由 { path: '/building-type', component: Layout, name: 'buildingType', children: [ { path: 'index', component: () => import('@/views/building
阅读全文
摘要:Home行首,End行尾。 但是mac中没有这两个键。 可以通过 Fn + ← 表示Home, Fn + → 表示End
阅读全文
摘要:在苹果Mac电脑的键盘上没有Home, End, Page UP, Page DOWN这些键,可以通过用Fn键来组合得到同样的功能: Home键=Fn+左方向、 End键=Fn+右方向、 PageUP=Fn+上方向、 PageDOWN=Fn+下方向、 向前Delete=Fn+delete键。
阅读全文
摘要:自带录屏软件,可以录制声音。非常的方便。
阅读全文
摘要:普通刷新 command + R 强制刷新 command + shift + R
阅读全文
摘要:/** * 身份证号加星 */ public static function hiddenIdCard($idcard) { // 匹配 3到6位数字,配置8位数字,匹配1到4位数字 $result = preg_replace("/(\d{3,6})\d{8}(\d{1,4})/", "$1**
阅读全文
摘要:
阅读全文
摘要:Command + F 查找 Command + Option + F 替换
阅读全文
摘要:   tell application "Terminal" r
阅读全文
摘要:安装 brew install redis % brew install redis ==> Downloading https://mirrors.cloud.tencent.com/homebrew-bottles/bottles/redis-6.2.4.arm64_big_sur ######
阅读全文
摘要:安装 brew install nodejs % brew install nodejs ==> Downloading https://mirrors.cloud.tencent.com/homebrew-bottles/bottles/libuv ########################
阅读全文
摘要:系统偏好设置->安全与隐私->屏幕录制->勾选微信(前提是把下面的锁🔒解开)
阅读全文
摘要:nginx需要root身份 将启动文件拷贝进去 sudo cp /opt/homebrew/Cellar/nginx/1.21.0/homebrew.mxcl.nginx.plist /Library/LaunchDaemons 设置开启启动 sudo lauchctl load -w /Libra
阅读全文
摘要:停掉服务 % sudo apachectl stop 再次搜索,没有了 % ps -ef | grep httpd 501 12767 705 0 11:18下午 ttys001 0:00.00 grep httpd 卸载自启动 sudo launchctl unload -w /System/Li
阅读全文
摘要:brew services run mysql # 启动mysql 服务 brew services start mysql # 启动 mysql 服务,并注册开机自启 brew services stop mysql # 停止 mysql 服务,并取消开机自启 brew services rest
阅读全文
摘要:Command + 点击函数 前提是安装了插件,PHP Intelephense。否则点击无效。
阅读全文
摘要:选择php5.6支持的版本,phpmyadmin4.9。 链接: https://pan.baidu.com/s/1LO-r-VXqmOndEl1gj8wCCA 密码: 4ujf 解压后,将其放入项目根目录下面。 就可以通过http://localhost:8080/phpmyadmin/来进行访问
阅读全文
摘要:基础版本 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; in
阅读全文
摘要:启动 % brew services start php@5.6 ==> Successfully started `php@5.6` (label: homebrew.mxcl.php@5.6) jiqing@jiqingdeMacBook-Pro nginx % ps -ef | grep ph
阅读全文
摘要:修改.zshrc # 进入 vim ~/.zshrc # 增加 # ls alias ll='ls -alf' # 生效 source ~/.zshrc 生效了 % ll total 0 drwxr-xr-x 6 root wheel 192 3 3 18:24 . drwxr-xr-x 20 ro
阅读全文
摘要:指令 sudo lsof -i :端口号 案例一 % sudo lsof -i :80 Password: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME httpd 314 root 4u IPv6 0xfd2222a5a53fcf99 0t0
阅读全文
摘要:创建启动目录,如果没有的话 mkdir -p ~/Library/LaunchAgents 将启动文件拷贝进去 % cp /opt/homebrew/Cellar/mysql@5.7/5.7.34/homebrew.mxcl.mysql@5.7.plist ~/Library/LaunchAgent
阅读全文
摘要:应用程序中 Command + H 隐藏(Hide)当前正在运行的应用程序窗口 Command + Option + H 隐藏(Hide)其他应用程序窗口 Command + Q 退出(Quit)最前面的应用程序 Command + Z 撤销 Command + Shift + Z 重做,也就是撤销
阅读全文
摘要:Command + L 光标直接跳至地址栏 Control + Tab 转向下一个标签页 Control + Shift + Tab 转向上一个标签页 Command + '+'或'=' 放大页面 Command + '-' 缩小页面
阅读全文
摘要:在程序间切换 command + tab 在窗口中切换 command + ~
阅读全文
摘要:通过手势。 在触控板,三个手指向上推。
阅读全文
摘要:通过手势,在触控板中。 拇指+三个手指。 向四周拨开。
阅读全文
摘要:比如,同时打开很多终端。 option+command+点击程序的关闭按钮 这样就可以一次全部关闭程序了。
阅读全文
摘要:方法一 command + delete 方法二 control + 单击触控板 方法三 双击触控板
阅读全文
摘要:Mac中vscode不太好打开私密的文件夹,可以通过使用code指令来打开项目。 # 在vscode中使用快捷键 command + shift + P 在PATH中安装“code”命令。 安装完成后,就可以在终端通过code指令打开项目文件夹了。 code . 或者 code /xxx/xxx
阅读全文
摘要:查询php % brew search php ==> Formulae brew-php-switcher php-cs-fixer php@7.3 phplint phpstan php php-cs-fixer@2 php@7.4 phpmd phpunit php-code-sniffer
阅读全文
摘要:阿里云源 # 替换brew.git cd "(brew --repo)/
阅读全文
摘要:安装 不是所有版本都能安装成功的 % brew install mysql@5.6 Warning: mysql@5.6 has been deprecated because it is not supported upstream! Error: mysql@5.6: no bottle ava
阅读全文
摘要:安装 brew install nginx 查看nginx brew info nginx 启动nginx sudo nginx 其他nginx常用指令 sudo nginx 启动服务 sudo nginx -s stop 停止服务(直接走) sudo nginx -s reload 重新加载 su
阅读全文
摘要:command + shift +4 只能选择一次,不太灵活。
阅读全文
摘要:在我们开发过程中,有时候我们安装一些工具软件需要将文件拷贝到系统限制更改的文件夹中,甚至有时需要更改系统限制的文件,而这时Mac会提示系统文件不能修改之类的内容,而这时我们想要继续操作必须关闭Mac电脑的“系统完整性保护”机制(SIP)。 1 查看SIP状态(enabled表示开启,disabled
阅读全文
摘要:Mac 安装Brew /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 使用国内源。 安装完后,检测一下。 % brew -v Homebrew 3.1.9-108-gaa93
阅读全文
摘要:打开终端 command+空格,输入“终端”,点击进入。 打开新的终端 如果,想要打开新的终端,command+N。
阅读全文
摘要:Component 所有的Component文件都是以大写开头 (PascalCase),这也是官方所推荐的。 但除了 index.vue。 例子: @/components/BackToTop/index.vue @/components/Charts/Line.vue @/views/examp
阅读全文
摘要:在 vue-element-admin 中,一个完整的前端 UI 交互到服务端处理流程是这样的: - UI 组件交互操作; - 调用统一管理的 api service 请求函数; - 使用封装的 request.js 发送请求; - 获取服务端返回; - 更新 data; 从上面的流程可以看出,为了
阅读全文
摘要:VGA VGA接口(即D-Sub接口)共15针,分为3排,每排5针,接口为D字型,用于传送模拟信号。VGA有着成熟的制造工艺、较宽的使用范围,它是模拟信号传输中最常见到的一种端口,占据了所有显示器、电视和投影机等产品必配备的接口份额,因此它的受众面非常广泛,拥有绝大部分视频设备的支持。 VGA是IB
阅读全文
摘要:/** * 检测是否是时间戳 */ public static function checkTimestamp($timestamp) { if(!is_int(times
阅读全文