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