摘要: $res3 = DB::table('users') ->join('user_folow_boutiques', 'user_folow_boutiques.user_id', '=', 'users.id') ->join('boutique', 'boutique.id', '=', 'use 阅读全文
posted @ 2023-01-30 12:09 jzfan 阅读(55) 评论(0) 推荐(0) 编辑
摘要: $model=DB::table('tablebname') ->where(function($query) use ($res){ $query->where('xx','xx'); }) ->selectRaw("area,from_unixtime(created_time,'%Y-%m-% 阅读全文
posted @ 2023-01-30 00:03 jzfan 阅读(130) 评论(0) 推荐(0) 编辑
摘要: ssh-copy-id 将本机的公钥复制到远程机器的authorized_keys文件中,ssh-copy-id也能让你有到远程机器的home, ~./ssh , 和 ~/.ssh/authorized_keys的权利 第一步: 在本地机器上使用 ssh-keygen 产生公钥私钥对(三次空格即可) 阅读全文
posted @ 2023-01-04 14:04 jzfan 阅读(74) 评论(0) 推荐(0) 编辑
摘要: git bash进入你的项目目录,输入:git config --global credential.helper store然后你会在你本地生成一个文本,上边记录你的账号和密码。当然这些你可以不用关心。然后你使用上述的命令配置好之后,再操作一次git pull,然后它会提示你输入账号密码,第一次输 阅读全文
posted @ 2022-06-22 18:00 jzfan 阅读(1615) 评论(0) 推荐(0) 编辑
摘要: 防抖 当事件被触发时,设定一个周期延迟执行动作,若期间又被触发,则重新设定周期,直到周期结束,执行动作 function debounce(func, delay) { let timer = null; return function (...arguments) { clearTimeout(t 阅读全文
posted @ 2022-04-26 11:59 jzfan 阅读(27) 评论(0) 推荐(0) 编辑
摘要: VUE配置proxy代理、开发环境、测试环境、生产环境 前端开发过程中,我们经常会碰到跨域的问题,下面我们来配置下,不同的环境下,统一的跨域问题解决。 1、根目录下新建三个环境的配置文件,.env.development(开发环境).env.test(测试环境).evn.production(生产环 阅读全文
posted @ 2022-04-26 10:40 jzfan 阅读(6120) 评论(0) 推荐(1) 编辑
摘要: $users = User::select('id', 'username', 'coins', 'cut') ->when(request()->has('agent_tip_sum'), function ($q) { $q->whereHas('agentBoughts', function 阅读全文
posted @ 2022-01-24 17:17 jzfan 阅读(157) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/2920150/insert-text-at-cursor-in-a-content-editable-div function insertTextAtCaret(text) { var sel, range; if (win 阅读全文
posted @ 2021-11-29 10:54 jzfan 阅读(29) 评论(0) 推荐(0) 编辑
摘要: Orm::withCount(['relation as relation_sum' =>function($query){ $query->select(DB::raw("sum(amount) as relationsum")); }]) 阅读全文
posted @ 2021-11-03 10:25 jzfan 阅读(424) 评论(0) 推荐(0) 编辑
摘要: <div class="constant-width-to-height-ratio"></div> .constant-width-to-height-ratio { background: #9C27B0; width: 50%; } .constant-width-to-height-rati 阅读全文
posted @ 2021-08-27 12:01 jzfan 阅读(40) 评论(0) 推荐(0) 编辑