2023年4月19日
摘要: @echo off set YYYYmmdd=%date:~0,4%%date:~5,2%%date:~8,2% set "filename=E:\download\bak\%YYYYmmdd%" if not exist %filename% mkdir %filename% xcopy.exe 阅读全文
posted @ 2023-04-19 11:13 M1911 阅读(85) 评论(0) 推荐(0) 编辑
  2023年1月17日
摘要: inline std::string utf8_to_gbk(const std::string& str) { std::wstring_convert<std::codecvt_utf8<wchar_t>> conv; std::wstring tmp_wstr = conv.from_byte 阅读全文
posted @ 2023-01-17 09:26 M1911 阅读(1346) 评论(0) 推荐(0) 编辑
  2023年1月13日
摘要: //封装的创建快捷方式API // szStartAppPath : 点击后启动的程序 // szAddCmdLine : 传给main函数的lpCmdLine // szDestLnkPath : 快捷方式的保存路径 // szIconPath : 快捷方式显示的图标 bool CreateLin 阅读全文
posted @ 2023-01-13 16:04 M1911 阅读(206) 评论(0) 推荐(0) 编辑
  2022年8月31日
摘要: var encoding = new UTF8Encoding(false); 阅读全文
posted @ 2022-08-31 11:13 M1911 阅读(125) 评论(0) 推荐(0) 编辑
  2022年8月3日
摘要: // -1往前推1天 1往后推1天 int calc_date(int days) { struct tm tmin; struct tm tmout; SYSTEMTIME st; GetLocalTime(&st); tmin.tm_year = st.wYear - 1900; tmin.tm 阅读全文
posted @ 2022-08-03 15:15 M1911 阅读(262) 评论(0) 推荐(0) 编辑
  2022年7月21日
摘要: 打开nginx.conf 修改第一行#user nobody ,去掉#,修改nobody为用户名 阅读全文
posted @ 2022-07-21 15:09 M1911 阅读(148) 评论(0) 推荐(0) 编辑
  2022年6月23日
摘要: 选择所有,右键段落,切换至中文版式,选择允许西文在单词中间换行 阅读全文
posted @ 2022-06-23 09:55 M1911 阅读(447) 评论(0) 推荐(0) 编辑
  2022年6月18日
摘要: string str = "{\"id\":\"9527\",\"name\":\"zxx}"; 可以改成 string str = R"({"id":"9527","name":"zxx"})"; 阅读全文
posted @ 2022-06-18 08:20 M1911 阅读(263) 评论(0) 推荐(0) 编辑
  2022年6月17日
摘要: 地址 https://github.com/nlohmann/json 使用时,直接#include "json.hpp" 再using namespace nlohmann; string jsonStr = R"({"id": 1, "name":"vivo"})";//第2个参数是错误处理,第 阅读全文
posted @ 2022-06-17 18:18 M1911 阅读(1923) 评论(0) 推荐(0) 编辑
  2022年5月13日
摘要: F12打开开发者工具,切换到控制台面板,输入下面代码并回车 setInterval(function () { var current_video = document.getElementsByTagName('video')[0] current_video.play()}, 1000) 阅读全文
posted @ 2022-05-13 14:10 M1911 阅读(381) 评论(0) 推荐(0) 编辑