update
This commit is contained in:
parent
e601f1d755
commit
357237bc84
4 changed files with 39 additions and 17 deletions
|
|
@ -12,24 +12,16 @@ snippet cl "console.log( ... )"
|
|||
console.log($0);
|
||||
endsnippet
|
||||
|
||||
snippet if "if ( ... ) { ... }"
|
||||
if ($1) {
|
||||
snippet .fe "...forEach( ... );" i
|
||||
.forEach(($1) => {
|
||||
$0
|
||||
}
|
||||
});
|
||||
endsnippet
|
||||
|
||||
snippet ifelse "if ( ... ) { ... } else { ... }"
|
||||
if ($1) {
|
||||
$2
|
||||
} else {
|
||||
snippet .ae "...addEventListener( ... );" i
|
||||
.addEventListener('$1', ($2) => {
|
||||
$0
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet for "for ( ... ) { ... }"
|
||||
for (let ${1:index} = ${2:0}; $1 $3; $1${4:++}) {
|
||||
$0
|
||||
}
|
||||
});
|
||||
endsnippet
|
||||
|
||||
snippet st "setTimeout( ... )"
|
||||
|
|
@ -37,6 +29,22 @@ setTimeout(() => {$0
|
|||
}, ${1:1000});
|
||||
endsnippet
|
||||
|
||||
snippet dq "document.querySelector( ... )"
|
||||
document.querySelector($0)
|
||||
endsnippet
|
||||
|
||||
snippet dqa "document.querySelectorAll( ... )"
|
||||
document.querySelectorAll($0)
|
||||
endsnippet
|
||||
|
||||
snippet cdq "const ... = document.querySelector( ... )"
|
||||
const $1 = document.querySelector($0);
|
||||
endsnippet
|
||||
|
||||
snippet cdqa "const ... = document.querySelectorAll( ... )"
|
||||
const $1 = document.querySelectorAll($0);
|
||||
endsnippet
|
||||
|
||||
snippet jsx "import React ..."
|
||||
import React from "react";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue