会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
jzfan
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
28
下一页
2024年8月16日
el-backtop
摘要: <template> <div id="app"> <div class="content"> <div class="backtop"></div> <el-backtop target=".content .backtop"></el-backtop> </div> </div> </templ
阅读全文
posted @ 2024-08-16 05:30 jzfan
阅读(9)
评论(0)
推荐(0)
2023年1月30日
group by和union,Laravel分页
摘要: $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
阅读(747)
评论(0)
推荐(0)
laravel groupBy 分页
摘要: $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
阅读(148)
评论(0)
推荐(0)
2023年1月4日
ssh 公钥登录
摘要: ssh-copy-id 将本机的公钥复制到远程机器的authorized_keys文件中,ssh-copy-id也能让你有到远程机器的home, ~./ssh , 和 ~/.ssh/authorized_keys的权利 第一步: 在本地机器上使用 ssh-keygen 产生公钥私钥对(三次空格即可)
阅读全文
posted @ 2023-01-04 14:04 jzfan
阅读(89)
评论(0)
推荐(0)
2022年6月22日
Git默认用户名和密码设置
摘要: git bash进入你的项目目录,输入:git config --global credential.helper store然后你会在你本地生成一个文本,上边记录你的账号和密码。当然这些你可以不用关心。然后你使用上述的命令配置好之后,再操作一次git pull,然后它会提示你输入账号密码,第一次输
阅读全文
posted @ 2022-06-22 18:00 jzfan
阅读(1733)
评论(0)
推荐(0)
2022年4月26日
防抖和节流
摘要: 防抖 当事件被触发时,设定一个周期延迟执行动作,若期间又被触发,则重新设定周期,直到周期结束,执行动作 function debounce(func, delay) { let timer = null; return function (...arguments) { clearTimeout(t
阅读全文
posted @ 2022-04-26 11:59 jzfan
阅读(33)
评论(0)
推荐(0)
VUE配置proxy代理、开发环境、测试环境、生产环境
摘要: VUE配置proxy代理、开发环境、测试环境、生产环境 前端开发过程中,我们经常会碰到跨域的问题,下面我们来配置下,不同的环境下,统一的跨域问题解决。 1、根目录下新建三个环境的配置文件,.env.development(开发环境).env.test(测试环境).evn.production(生产环
阅读全文
posted @ 2022-04-26 10:40 jzfan
阅读(7514)
评论(0)
推荐(1)
2022年1月24日
laravel whereHas sum & addSelect sum
摘要: $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
阅读(176)
评论(0)
推荐(0)
2021年11月29日
insert-text-at-cursor-in-a-content-editable-div
摘要: 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
阅读(37)
评论(0)
推荐(0)
2021年11月3日
LaravelORM 中的 withSum , withAvg, withMax,withMin 的实现
摘要: Orm::withCount(['relation as relation_sum' =>function($query){ $query->select(DB::raw("sum(amount) as relationsum")); }])
阅读全文
posted @ 2021-11-03 10:25 jzfan
阅读(469)
评论(0)
推荐(0)
1
2
3
4
5
···
28
下一页