English | δΈζ
console.log selected text
console.log('π³result------------------------------>');
console.log selected text and val
console.log('π§-----text-----', val);
It will delete all console.log statements in the current document
Prefix | JavaScript Snippet Content |
---|---|
lre |
πapi requset demo |
lcl |
πconsole.log('π-----xxx-----',xxx) // xxx |
laf |
πconst func = () => {} |
lif |
πif(){ ... } else{...} |
lsw |
πswitch(){ case: break; default: break;} |
lcc |
π/** * @func fnName */ |
Prefix | Vue Snippet Content |
---|---|
lvc |
πvue3 component template |
lvb |
π vue base template |
lref |
π const valName = ref(..) |
lrea |
π const valName = reactive(..) |
lcom |
π const valName = computed(..) |
lwa |
π watch(..) |
lwe |
π watchEffect(..) |
lmo |
π onMounted(..) |
lbm |
π onBeforeMount(..) |
lbu |
π onBeforeUnmount(..) |
lun |
π onUnmounted(..) |
lvem |
π const emit = defineEmits([]); |
lvpr |
π const props = defineProps({}); |
lvde |
π defineExpose({}); |
Prefix | Vue Snippet html |
---|---|
lrem |
πlorem of English |
lremc |
πlorem of Chinese |
lremn |
πlorem of num |
With the rapid development and iteration of tools, the testing requirements that need to be addressed are also increasing, with a large number of calls and nesting appearing in the code The probability of collapse is also increasing. In order to solve these problems and reduce repetitive work, we have encapsulated these functions and code blocks in a fast and efficient manner, optimizing the code size and development efficiency, and greatly improving the readability and comprehensibility of the code.
This article introduces a shortcut writing method based on Lean Snippet, which allows us to write in a synchronous manner for rapid development.
Enjoy it to the fullest
MIT License Β© 2023-PRESENT Icey Wu