原创 學習Vue子組件操作父組件(emit)

<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <title>vue learning</title> </head> <body>

原创 判斷分支是否需要merge的方法

git --help branch NAME git-branch - List, create, or delete branches SYNOPSIS git branch [--color[=

原创 foreach & 的坑

例1.foreach & as 變量不一樣(正常結果) <?php $arr = [11, 22, 33, 44, 55]; foreach ($arr as &$val) { $val += 1; var_dum

原创 大小爲 K 且平均值大於等於閾值的子數組數目

題目: 大小爲 K 且平均值大於等於閾值的子數組數目 來源:力扣(LeetCode) 鏈接:https://leetcode-cn.com/problems/number-of-sub-arrays-of-size-k-and-

原创 Postgresql 約束(constraint)

聲明:以下內容看完文檔僅個人理解,僅供參考,詳見下方參考資料。 約束(constraint) 約束分爲檢查約束(Check Constraints)、非空約束(Not-Null Constraints)、唯一約束(Unique C

原创 數組元素被第一個元素整除的解決過程

問題 返回一個數組每個元素都整除第一個元素的數組結果 思考過程 輸入數組的每個元素是什麼類型? 輸出數組的每個元素又是什麼類型? 數組的第一個元素爲0怎麼處理? 數組元素的第一個元素爲1怎麼處理? 應用場景是什麼? 最終要達到的

原创 shell mail and sendmail

shell mail and sendmail mail man mail ,for exampl: echo 'body' | mail -s "Subject" -t [email protected] -a From:m

原创 HTML fieldset 標籤

原文:https://www.w3school.com.cn/tags/tag_fieldset.asp html fieldset 神奇的邊框上帶文字的實現: <!DOCTYPE HTML> <html> <body> <f

原创 webpack 起步

概念 官方解釋: 本質上,webpack 是一個現代 JavaScript 應用程序的靜態模塊打包器(module bundler)。當 webpack 處理應用程序時,它會遞歸地構建一個依賴關係圖(dependency grap

原创 webpack 錯誤 Module build failed (from ./node_modules/css-loader/dist/cjs.js): CssSyntaxError

錯誤 npm run build > [email protected] build /home/q/www/webpack_test > webpack Hash: e5a0c99f86239b7fee98 Version

原创 UPLOAD_ERR

原文鏈接 https://www.php.net/manual/en/features.file-upload.errors.php HTML <form enctype="multipart/form-data" action=

原创 postgresql SQL COUNT(DISTNCT FIELD) 優化

引用 引自文章1:https://www.cnblogs.com/wangzhen3798/p/7630602.html 引自文章2:https://www.jb51.net/article/65680.htm 感謝前輩們趟坑分

原创 redis 報錯 Failed to start Advanced key-value store.

Redis 報錯 : Failed to start Advanced key-value store. dpkg: error processing package redis-server (--configure): in

原创 php file_get_contents不能打開https

查看系統有沒有 openssl php -m | grep openssl openssl #沒有安裝即可 centos php7.3 openssl.cafile 如果有 openssl 擴展, 試一下指定 openssl.

原创 vscode ImportError: No module named xxx

VSCODE 點擊右上角運行按鈕,報錯如下: [Running] python -u "test.py" Traceback (most recent call last): File "test.py", line 3, i