按住 cmd
双击列表中的文件即可,也可以先选中列表中的文件再按组合键 cmd
+ R
。选中某个文件按住 cmd
键,在预览侧底部会显示文件所在的路径。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Multiline Ellipsis</title> | |
</head> | |
<body> | |
<div class="multiline-ellipsis-wrapper"> | |
<span class="multiline-ellipsis-content"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 11. 元组转换为对象 | |
const tuple = ['tesla', 'model 3', 'model X', 'model Y'] as const | |
type TupleToObject<T extends readonly any[]> = {[P in T[number]]: P} | |
type result = TupleToObject<typeof tuple> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createLoggedProxy(obj) { | |
var traps = {}; | |
for (let trap of Object.getOwnPropertyNames(Reflect)) { | |
traps[trap] = (...args) => { | |
console.log(trap, ...args.slice(0, -1)); // Last arg is always the proxy, no need to log it | |
return Reflect[trap](...args); | |
} | |
} | |
https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
Getting started:
Related tutorials:
NewerOlder