06 2021 档案

摘要:// 全局通用日志工具 function setlog(param=[],result = [],name=,filename = '',$path = ''){ if (!path)$path=BASEPATH.../logs/;if(!filename 阅读全文
posted @ 2021-06-30 15:25 TBHacker 阅读(133) 评论(0) 推荐(0) 编辑
摘要:Mac 自定义可执行脚本 新建文件夹sh mkdir sh 创建自定义sh touch pull.sh touch push.sh 写入内容 #!/bin/bash # 一次性处理git拉取 #branch_name=`git symbolic-ref --short -q HEAD` branch 阅读全文
posted @ 2021-06-26 14:56 TBHacker 阅读(205) 评论(0) 推荐(0) 编辑
摘要:跳转按钮 <el-button type="primary" size="medium" icon="el-icon-s-grid" @click="handleToAcreage(floorInfo)">房屋面积管理</el-button> 跳转新的页面方法 handleToAcreage(row 阅读全文
posted @ 2021-06-26 14:25 TBHacker 阅读(713) 评论(0) 推荐(0) 编辑
摘要:<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=" 阅读全文
posted @ 2021-06-25 18:37 TBHacker 阅读(774) 评论(0) 推荐(0) 编辑
摘要:启动 % 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 阅读全文
posted @ 2021-06-25 14:25 TBHacker 阅读(805) 评论(0) 推荐(0) 编辑
摘要:如何增加一个查询数据库的select data中加一个变量 buildingTypeList: [] 初始化的时候获取内容 created() { // 获取楼栋类型 this.getBuildingTypeList(); } // 添加方法 getBuildingTypeList() { getB 阅读全文
posted @ 2021-06-25 10:21 TBHacker 阅读(1643) 评论(0) 推荐(0) 编辑
摘要:有时候,双击到shift,就会自动弹出搜索全部。非常的烦人。 command + shift +A 输入registry 找到下面的内容 后面打钩,然后点击close。 阅读全文
posted @ 2021-06-23 11:39 TBHacker 阅读(209) 评论(0) 推荐(0) 编辑
摘要:https://www.spectacleapp.com/ 阅读全文
posted @ 2021-06-21 09:42 TBHacker 阅读(402) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-06-18 18:11 TBHacker 阅读(85) 评论(0) 推荐(0) 编辑
摘要:先卸载 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 阅读全文
posted @ 2021-06-18 11:21 TBHacker 阅读(562) 评论(0) 推荐(0) 编辑
摘要: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,可能 阅读全文
posted @ 2021-06-18 10:50 TBHacker 阅读(2614) 评论(0) 推荐(2) 编辑
摘要:<script type="text/javascript"> function download() { // 判断是否是微信内 var u = navigator.userAgent; var isWeixin = !!/MicroMessenger/i.test(u); if (isWeixi 阅读全文
posted @ 2021-06-17 19:20 TBHacker 阅读(412) 评论(0) 推荐(0) 编辑
摘要:Command + L 阅读全文
posted @ 2021-06-17 17:48 TBHacker 阅读(149) 评论(0) 推荐(0) 编辑
摘要:vue后台开发 添加路由 { path: '/building-type', component: Layout, name: 'buildingType', children: [ { path: 'index', component: () => import('@/views/building 阅读全文
posted @ 2021-06-17 15:19 TBHacker 阅读(810) 评论(0) 推荐(0) 编辑
摘要:Home行首,End行尾。 但是mac中没有这两个键。 可以通过 Fn + ← 表示Home, Fn + → 表示End 阅读全文
posted @ 2021-06-17 10:08 TBHacker 阅读(1150) 评论(0) 推荐(0) 编辑
摘要:在苹果Mac电脑的键盘上没有Home, End, Page UP, Page DOWN这些键,可以通过用Fn键来组合得到同样的功能: Home键=Fn+左方向、 End键=Fn+右方向、 PageUP=Fn+上方向、 PageDOWN=Fn+下方向、 向前Delete=Fn+delete键。 阅读全文
posted @ 2021-06-17 10:07 TBHacker 阅读(1817) 评论(0) 推荐(0) 编辑
摘要:自带录屏软件,可以录制声音。非常的方便。 阅读全文
posted @ 2021-06-16 17:37 TBHacker 阅读(121) 评论(0) 推荐(0) 编辑
摘要:普通刷新 command + R 强制刷新 command + shift + R 阅读全文
posted @ 2021-06-16 16:55 TBHacker 阅读(287) 评论(0) 推荐(0) 编辑
摘要:/** * 身份证号加星 */ public static function hiddenIdCard($idcard) { // 匹配 3到6位数字,配置8位数字,匹配1到4位数字 $result = preg_replace("/(\d{3,6})\d{8}(\d{1,4})/", "$1** 阅读全文
posted @ 2021-06-16 15:30 TBHacker 阅读(268) 评论(0) 推荐(0) 编辑
摘要:option + ↑/↓ 阅读全文
posted @ 2021-06-16 11:03 TBHacker 阅读(184) 评论(0) 推荐(0) 编辑
摘要:![](https://img2020.cnblogs.com/blog/422101/202106/422101-20210615153418201-702755236.png) 阅读全文
posted @ 2021-06-15 15:35 TBHacker 阅读(100) 评论(0) 推荐(0) 编辑
摘要:Command + F 查找 Command + Option + F 替换 阅读全文
posted @ 2021-06-15 14:04 TBHacker 阅读(1288) 评论(0) 推荐(0) 编辑
摘要:![](https://img2020.cnblogs.com/blog/422101/202106/422101-20210615104839554-713840905.png) ![](https://img2020.cnblogs.com/blog/422101/202106/422101-20210615105743480-969599895.png) ![](https://img202 阅读全文
posted @ 2021-06-15 10:49 TBHacker 阅读(432) 评论(0) 推荐(0) 编辑
摘要:隐藏指定文件夹 % chflags hidden ./a 查看所有文件,包括隐藏的 command + shift + . 恢复文件夹 % chflags nohidden ./a 阅读全文
posted @ 2021-06-12 01:02 TBHacker 阅读(251) 评论(0) 推荐(0) 编辑
摘要:就像批量选择文本一样,三指选择即可。 阅读全文
posted @ 2021-06-11 11:24 TBHacker 阅读(1627) 评论(0) 推荐(0) 编辑
摘要:当你把这个AUTO_INCREMENT设为某个值的时候,下一次就从这个值作为下一个新增数据的id。 比如4,下一次新增就是4作为id。 阅读全文
posted @ 2021-06-11 10:48 TBHacker 阅读(86) 评论(0) 推荐(0) 编辑
摘要:% git pull hint: Pulling without specifying how to reconcile divergent branches is hint: discouraged. You can squelch this message by running one of t 阅读全文
posted @ 2021-06-10 16:02 TBHacker 阅读(6816) 评论(0) 推荐(0) 编辑
摘要:第一步,找到自动操作 第二步,打开快捷操作 第三步,工作流选择没有输入,将下面脚本输入其中,并保存名称为open terminal on run {input, parameters} (* Your script goes here *) tell application "Terminal" r 阅读全文
posted @ 2021-06-10 10:32 TBHacker 阅读(648) 评论(0) 推荐(0) 编辑
摘要:control + shift + 关机键 阅读全文
posted @ 2021-06-09 10:49 TBHacker 阅读(1520) 评论(0) 推荐(0) 编辑
摘要:安装 brew install redis % brew install redis ==> Downloading https://mirrors.cloud.tencent.com/homebrew-bottles/bottles/redis-6.2.4.arm64_big_sur ###### 阅读全文
posted @ 2021-06-07 14:11 TBHacker 阅读(2192) 评论(0) 推荐(0) 编辑
摘要:安装 brew install nodejs % brew install nodejs ==> Downloading https://mirrors.cloud.tencent.com/homebrew-bottles/bottles/libuv ######################## 阅读全文
posted @ 2021-06-07 11:47 TBHacker 阅读(5918) 评论(0) 推荐(1) 编辑
摘要:control+command+A 阅读全文
posted @ 2021-06-07 10:37 TBHacker 阅读(1754) 评论(0) 推荐(0) 编辑
摘要:系统偏好设置->安全与隐私->屏幕录制->勾选微信(前提是把下面的锁🔒解开) 阅读全文
posted @ 2021-06-07 10:31 TBHacker 阅读(5450) 评论(0) 推荐(0) 编辑
摘要:nginx需要root身份 将启动文件拷贝进去 sudo cp /opt/homebrew/Cellar/nginx/1.21.0/homebrew.mxcl.nginx.plist /Library/LaunchDaemons 设置开启启动 sudo lauchctl load -w /Libra 阅读全文
posted @ 2021-06-07 01:04 TBHacker 阅读(2389) 评论(0) 推荐(0) 编辑
摘要:停掉服务 % 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 阅读全文
posted @ 2021-06-07 00:56 TBHacker 阅读(1217) 评论(0) 推荐(0) 编辑
摘要:访达+拖拽到废纸篓。 前提是软件没有打开。 阅读全文
posted @ 2021-06-06 22:31 TBHacker 阅读(100) 评论(0) 推荐(0) 编辑
摘要:brew services run mysql # 启动mysql 服务 brew services start mysql # 启动 mysql 服务,并注册开机自启 brew services stop mysql # 停止 mysql 服务,并取消开机自启 brew services rest 阅读全文
posted @ 2021-06-06 16:19 TBHacker 阅读(315) 评论(0) 推荐(0) 编辑
摘要:Command + 点击函数 前提是安装了插件,PHP Intelephense。否则点击无效。 阅读全文
posted @ 2021-06-06 12:08 TBHacker 阅读(1329) 评论(0) 推荐(0) 编辑
摘要:选中文件后,按Enter健。 阅读全文
posted @ 2021-06-06 09:49 TBHacker 阅读(867) 评论(0) 推荐(0) 编辑
摘要:选择php5.6支持的版本,phpmyadmin4.9。 链接: https://pan.baidu.com/s/1LO-r-VXqmOndEl1gj8wCCA 密码: 4ujf 解压后,将其放入项目根目录下面。 就可以通过http://localhost:8080/phpmyadmin/来进行访问 阅读全文
posted @ 2021-06-06 09:29 TBHacker 阅读(274) 评论(0) 推荐(0) 编辑
摘要:基础版本 # 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 阅读全文
posted @ 2021-06-06 09:06 TBHacker 阅读(257) 评论(0) 推荐(0) 编辑
摘要:启动 % 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 阅读全文
posted @ 2021-06-06 08:23 TBHacker 阅读(2362) 评论(0) 推荐(0) 编辑
摘要:修改.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 阅读全文
posted @ 2021-06-05 13:28 TBHacker 阅读(342) 评论(0) 推荐(0) 编辑
摘要:指令 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 阅读全文
posted @ 2021-06-05 13:20 TBHacker 阅读(830) 评论(0) 推荐(0) 编辑
摘要:创建启动目录,如果没有的话 mkdir -p ~/Library/LaunchAgents 将启动文件拷贝进去 % cp /opt/homebrew/Cellar/mysql@5.7/5.7.34/homebrew.mxcl.mysql@5.7.plist ~/Library/LaunchAgent 阅读全文
posted @ 2021-06-05 11:11 TBHacker 阅读(931) 评论(0) 推荐(0) 编辑
摘要:应用程序中 Command + H 隐藏(Hide)当前正在运行的应用程序窗口 Command + Option + H 隐藏(Hide)其他应用程序窗口 Command + Q 退出(Quit)最前面的应用程序 Command + Z 撤销 Command + Shift + Z 重做,也就是撤销 阅读全文
posted @ 2021-06-04 18:39 TBHacker 阅读(386) 评论(0) 推荐(0) 编辑
摘要:Command + L 光标直接跳至地址栏 Control + Tab 转向下一个标签页 Control + Shift + Tab 转向上一个标签页 Command + '+'或'=' 放大页面 Command + '-' 缩小页面 阅读全文
posted @ 2021-06-04 18:36 TBHacker 阅读(351) 评论(0) 推荐(0) 编辑
摘要:在程序间切换 command + tab 在窗口中切换 command + ~ 阅读全文
posted @ 2021-06-04 18:34 TBHacker 阅读(722) 评论(0) 推荐(0) 编辑
摘要:通过手势。 在触控板,三个手指向上推。 阅读全文
posted @ 2021-06-04 18:30 TBHacker 阅读(2691) 评论(0) 推荐(0) 编辑
摘要:通过手势,在触控板中。 拇指+三个手指。 向四周拨开。 阅读全文
posted @ 2021-06-04 18:23 TBHacker 阅读(733) 评论(0) 推荐(0) 编辑
摘要:比如,同时打开很多终端。 option+command+点击程序的关闭按钮 这样就可以一次全部关闭程序了。 阅读全文
posted @ 2021-06-04 18:15 TBHacker 阅读(448) 评论(0) 推荐(0) 编辑
摘要:方法一 command + delete 方法二 control + 单击触控板 方法三 双击触控板 阅读全文
posted @ 2021-06-04 18:10 TBHacker 阅读(424) 评论(0) 推荐(0) 编辑
摘要:Mac中vscode不太好打开私密的文件夹,可以通过使用code指令来打开项目。 # 在vscode中使用快捷键 command + shift + P 在PATH中安装“code”命令。 安装完成后,就可以在终端通过code指令打开项目文件夹了。 code . 或者 code /xxx/xxx 阅读全文
posted @ 2021-06-04 17:36 TBHacker 阅读(1810) 评论(0) 推荐(0) 编辑
摘要:查询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 阅读全文
posted @ 2021-06-04 16:36 TBHacker 阅读(1377) 评论(0) 推荐(0) 编辑
摘要:阿里云源 # 替换brew.git cd "(brew --repo)" git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git # 替换homebrew-core.git cd "(brew --repo)/ 阅读全文
posted @ 2021-06-04 14:31 TBHacker 阅读(858) 评论(1) 推荐(0) 编辑
摘要:安装 不是所有版本都能安装成功的 % 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 阅读全文
posted @ 2021-06-04 13:55 TBHacker 阅读(6023) 评论(2) 推荐(0) 编辑
摘要:安装 brew install nginx 查看nginx brew info nginx 启动nginx sudo nginx 其他nginx常用指令 sudo nginx 启动服务 sudo nginx -s stop 停止服务(直接走) sudo nginx -s reload 重新加载 su 阅读全文
posted @ 2021-06-04 10:52 TBHacker 阅读(233) 评论(0) 推荐(0) 编辑
摘要:command + shift +4 只能选择一次,不太灵活。 阅读全文
posted @ 2021-06-04 10:43 TBHacker 阅读(145) 评论(0) 推荐(0) 编辑
摘要:在我们开发过程中,有时候我们安装一些工具软件需要将文件拷贝到系统限制更改的文件夹中,甚至有时需要更改系统限制的文件,而这时Mac会提示系统文件不能修改之类的内容,而这时我们想要继续操作必须关闭Mac电脑的“系统完整性保护”机制(SIP)。 1 查看SIP状态(enabled表示开启,disabled 阅读全文
posted @ 2021-06-03 22:57 TBHacker 阅读(957) 评论(0) 推荐(0) 编辑
摘要:Mac 安装Brew /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 使用国内源。 安装完后,检测一下。 % brew -v Homebrew 3.1.9-108-gaa93 阅读全文
posted @ 2021-06-03 21:34 TBHacker 阅读(116) 评论(0) 推荐(0) 编辑
摘要:打开终端 command+空格,输入“终端”,点击进入。 打开新的终端 如果,想要打开新的终端,command+N。 阅读全文
posted @ 2021-06-03 21:18 TBHacker 阅读(655) 评论(0) 推荐(0) 编辑
摘要:Component 所有的Component文件都是以大写开头 (PascalCase),这也是官方所推荐的。 但除了 index.vue。 例子: @/components/BackToTop/index.vue @/components/Charts/Line.vue @/views/examp 阅读全文
posted @ 2021-06-03 11:05 TBHacker 阅读(195) 评论(0) 推荐(0) 编辑
摘要:在 vue-element-admin 中,一个完整的前端 UI 交互到服务端处理流程是这样的: - UI 组件交互操作; - 调用统一管理的 api service 请求函数; - 使用封装的 request.js 发送请求; - 获取服务端返回; - 更新 data; 从上面的流程可以看出,为了 阅读全文
posted @ 2021-06-03 10:32 TBHacker 阅读(847) 评论(0) 推荐(0) 编辑
摘要:VGA VGA接口(即D-Sub接口)共15针,分为3排,每排5针,接口为D字型,用于传送模拟信号。VGA有着成熟的制造工艺、较宽的使用范围,它是模拟信号传输中最常见到的一种端口,占据了所有显示器、电视和投影机等产品必配备的接口份额,因此它的受众面非常广泛,拥有绝大部分视频设备的支持。 VGA是IB 阅读全文
posted @ 2021-06-02 13:51 TBHacker 阅读(4412) 评论(0) 推荐(0) 编辑
摘要:if ((starttime=this->input_data['start_time']) && (endtime=this->input_data['end_time'])) { where[createtime]=[[gt,start_time.' 00: 阅读全文
posted @ 2021-06-02 11:16 TBHacker 阅读(6400) 评论(0) 推荐(0) 编辑
摘要:/** * 检测是否是时间戳 */ public static function checkTimestamp($timestamp) { if(!is_int(timestamp))returnfalse;if(strtotime(date(YmdH:i:s,times 阅读全文
posted @ 2021-06-01 16:13 TBHacker 阅读(1023) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示