開發問題整理2

2021-08-03 17:56:47 字數 573 閱讀 5890

1.如果要操作少量的資料用 string;因為string不可變,速度最慢

2.單執行緒操作字串緩衝區 下操作大量資料 = stringbuilder;執行緒非安全

3.多執行緒操作字串緩衝區 下操作大量資料 = stringbuffer;執行緒安全的

4、and owner_name like '%$%' 是完全模糊的sql寫法'$%'是半模糊;只會從前往後搜尋

5、eclips 關閉js載入:

6、時間格式轉換為24小時:

dateformat formatter = new ******dateformat("yyyy-mm-dd hh:mm:ss");

string gmtcreat = formatter.format(storebasicinfo.getgmtcreate());

string gmtmodified = formatter.format( storebasicinfo.getgmtmodified());

result.put("gmtcreat", gmtcreat);

result.put("gmtmodified", gmtmodified);

vue開發問題處理,未整理

vue專案配置 手動根目錄新增vue.config.js檔案 寫入內容 module.exports post請求例項 this axios.post api login param,then res catch err axios請求等待時間 ttfb 過長 所有清空求的ttfb時間基本都在兩秒以...

Virsual Studio 開發問題

win32 控制台應用 自動生成 stdafx.h stdatx.cpp resouce.h targetver.h 工程名.cpp win32 dll 自動生成 stdafx.h stdatx.cpp resouce.h targetver.h 工程名.cpp dllmain.cpp stdafx...

開發問題集合

q1 變數儲存 超出範圍問題 設計id為256位的變數,策劃填表的時候超出範圍,最終儲存的變數將被截斷,導致與表中的資料不一致 a1 這時改變資料結構的話會導致之前擁有該物品的玩家丟失資料,建議的解決方案為,可臨時改變表中資料id為截斷後的數值,在每一次儲存資料的時候將數值手動進行判斷,若超出範圍的...