Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>JavaScript Snippets By MDNNew to Visual Studio Code? Get it now.
JavaScript Snippets By MDN

JavaScript Snippets By MDN

Sun Rising Chang

|
214 installs
| (0) | Free
JavaScript 代码片段
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

javascript-snippets-by-mdn

JavaScript 代码段,数据来源 https://developer.mozilla.org/zh-CN/docs/Web/JavaScript

Using

触发提示规则 [对象的前三位]+方法名

arrfrom           -->     Array.from(${2})
arrconcat         -->     ${1:array}.concat(${2})
datgetdate        -->     ${1:date}.getDate()
datgethours       -->     ${1:date}.getHours()
numisfinite       -->     Number.isFinite(${2})
numisnan          -->     Number.isNaN(${2})
proall            -->     Promise.all(${2})
procatch          -->     ${1:promise}.catch(${2})
...
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft