摘要:
<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
閱讀(10)
推薦(0)
摘要:
$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)
摘要:
$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)
摘要:
ssh-copy-id 將本機的公鑰復制到遠程機器的authorized_keys文件中,ssh-copy-id也能讓你有到遠程機器的home, ~./ssh , 和 ~/.ssh/authorized_keys的權利 第一步: 在本地機器上使用 ssh-keygen 產生公鑰私鑰對(三次空格即可)
閱讀全文
posted @ 2023-01-04 14:04
jzfan
閱讀(90)
推薦(0)
摘要:
git bash進入你的項目目錄,輸入:git config --global credential.helper store然后你會在你本地生成一個文本,上邊記錄你的賬號和密碼。當然這些你可以不用關心。然后你使用上述的命令配置好之后,再操作一次git pull,然后它會提示你輸入賬號密碼,第一次輸
閱讀全文
posted @ 2022-06-22 18:00
jzfan
閱讀(1733)
推薦(0)
摘要:
防抖 當事件被觸發時,設定一個周期延遲執行動作,若期間又被觸發,則重新設定周期,直到周期結束,執行動作 function debounce(func, delay) { let timer = null; return function (...arguments) { clearTimeout(t
閱讀全文
posted @ 2022-04-26 11:59
jzfan
閱讀(33)
推薦(0)
摘要:
VUE配置proxy代理、開發環境、測試環境、生產環境 前端開發過程中,我們經常會碰到跨域的問題,下面我們來配置下,不同的環境下,統一的跨域問題解決。 1、根目錄下新建三個環境的配置文件,.env.development(開發環境).env.test(測試環境).evn.production(生產環
閱讀全文
posted @ 2022-04-26 10:40
jzfan
閱讀(7516)
推薦(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
閱讀(176)
推薦(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
閱讀(37)
推薦(0)
摘要:
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)