1. 程式人生 > 其它 >用 JS 原生方法實現 jQuery 的 append, prepend等常用方法

用 JS 原生方法實現 jQuery 的 append, prepend等常用方法

動作 快捷鍵 說明
Complete Current Statement Ctrl+Shift+Enter 將輸入的if、for、函式等等補上{}或者;使程式碼語句完整
Extend Selection Ctrl+W 選中整個單詞
Toggle Case Ctrl+Shift+U 切換大小寫
Join Lines Ctrl+Shift+J 將選中的行合併成一行
Find Ctrl+F 在當前檔案中查詢
Replace Ctrl+R 替換字串
Find in Path Ctrl+Shift+F 在全域性檔案中查詢字串
Replace in Path Ctrl+Shift+R 在全域性中替換字串
Find Usages Alt+F7 查詢當前變數的使用,並列表顯示
Highlight Usages in File Ctrl+Shift+F7 在檔案中高亮顯示變數的使用
Declaration Ctrl+B 定位至變數定義的位置
Implementation(s) Ctrl+Alt+B 定位至選中類或方法的具體實現
File Structure Ctrl+F12 顯示當前檔案的檔案結構
Override Methods… Ctrl+O 重寫基類的方法
Implement Methods… Ctrl+I 實現基類或介面中的方法
Surround With… Ctrl+Alt+T 將選中的程式碼使用if、while、try/catch等包裝
Move Statement Down Ctrl+Shift+向下箭頭 將游標所在的程式碼塊向下整體移動
Move Statement Up Ctrl+Shift+向上箭頭 將游標所在的程式碼塊向上移動
Move Line Down Alt+Shift+向下箭頭 將行向下移動
Rename Shift+F6 重新命名
Type Migration Ctrl+Shift+F6 更改型別