原创 不要懷疑uniapp的image標籤是支持本地路徑的(圖片緩存組件)。

明明記得前一天還能顯示圖片,可是這天死活不顯示了。絕對路徑,相對路徑都試過,用錯誤路徑能觸發@error,但是用正確路徑就是不報錯,不顯示圖片。然後就懷疑image只支持網絡路徑和應用/static/路徑,搜索uniapp問答社區,官方也有

原创 如何在gorm中對字符串數組進行追加?

https://www.zhblog.net/qa/array-in-gorm.html https://stackoverflow.com/questions/68122214/how-to-append-to-the-string-ar

原创 golang + vue3+vite 構建後臺管理系統筆記。

開始選用的gin框架,但是後來突然發現gin框架的路由不是最長匹配規則。不能實現路由降級。比如不能同時註冊 / 和 /upload 路由。如下代碼會報錯。 // catch-all wildcard '*filepath' in new

原创 我容易嗎?1個小時整理的50音表機讀數據。

清音-濁音-半濁音-拗音 あ,ア,a|い,イ,i|う,ウ,u|え,エ,e|お,オ,o. か,カ,ka|き,キ,ki|く,ク,ku|け,ケ,ke|こ,コ,ko. さ,サ,sa|し,シ,shi|す,ス,su|せ,セ,se|そ,ソ,so. た,タ

原创 uniapp 蒙版 mask 禁止穿透。

https://uniapp.dcloud.io/component/uniui/uni-popup.html#%E7%A6%81%E6%AD%A2%E6%BB%9A%E5%8A%A8%E7%A9%BF%E9%80%8F

原创 ASR 語音識別

https://blog.ailemon.net/2017/04/27/statistical-language-model-chinese-pinyin-to-words/#more-235

原创 uniapp CSS 變量

<!-- CSS 變量 https://uniapp.dcloud.net.cn/tutorial/syntax-css.html#css-%E5%8F%98%E9%87%8F

原创 js require 動態加載 變量目錄的js數據。

var temp = that.wordRow[this.wordRowIdx] ; //import(mdPath).then((m)=>{

原创 C# AES CBC PKCS7

The package openssl is compatible with built-in CMake targets: find_package(OpenSSL REQUIRED) target_link_libraries(main

原创 PowerShell監控outlook新郵件到達

PowerShell監控outlook新郵件到達(單封,多封可能要分解id(舊版需分解?新版不需要?新版就是每個郵件出發一次newmailex?看如下documents)) This event fires once for every r

原创 PowerShell:查看是否有某個文件夾被打開。

查看是否有名爲 C:\Users\zhangcl\Desktop\tooling 的文件夾被打開 $tooling = $false (New-Object -ComObject 'Shell.Application').Windows()

原创 ESP32用smart_config自動配網時收不到IP_EVENT_STA_GOT_IP和SC_EVENT_SEND_ACK_DONE

wifi初始化順序必須是 void wifi_init(void){ ESP_ERROR_CHECK(esp_netif_init()); // 初始化tcp/ip協議棧 ESP_ERROR_CHECK(esp_event

原创 MP3、故事機MCU選型記錄

要弄一個mp3音頻硬件。沒有接觸過,所以開始找了好多方案,by8001+51(stm32),vs1003+51(stm32)。後來發現stm32太貴了。所以開始琢磨51+vs1003,電路圖找了好多。基本上就確定了vs1003+51+sd模

原创 idf.py menuconfig 上下箭頭不能用。。。。。

After updating to the latest version of esp-idf, even the rendering in vscode is broken. Even though the menu is hard to