当前位置:网站首页>Daily work specifications
Daily work specifications
2022-07-22 20:02:00 【You must work hard, but don't worry】
- boolean Value to use isXXX、hasXXX、canXXX name
- At a glance, we can understand that the meaning of variables is teacher
teacherList.forEach( teacher => {})
- Assign default
function getTeacherInfo(teacherName = ‘Teacher.Cang’) {}
- Reduce the number of parameters
createClick({
name: ‘ peng ’,
sex: ‘ male ’,
age: 18
})
function createClick({ sex }){}
- css Use less descendant selectors Each style Navigate to each class name
- Multiple judgment writing
if( value === ‘duck’ || value === ‘dog’ || value === ‘cat’ ) {}
Change it to
const animalName = [‘duck’, ‘dog’, ‘cat’]
if ( animalName.includes(value) ) {}
- // Common writing
if (condition) {
doSomething()
}
// Abbreviation
condition && doSomething()
边栏推荐
- jvm-jmap(内存映像工具)的使用
- Summary of MySQL grant user permissions
- Spark RDD depends on the working principle of DAG
- NC88 寻找第K大
- Insert, modify and delete table data of MySQL
- shell script “<< EOF”我的用途和遇到的问题
- IDEA运行WordCount程序(详细步骤)
- From data standards to database design: solve the last mile problem of basic data standards (Part 2)
- leetcode 394. 字符串解码
- As a beginner, I don't want to use eslint
猜你喜欢
Data architecture and database modeling
jvm的jps简单使用
Creation of sparksql dataset
shell script “<< EOF”我的用途和遇到的问题
Data warehouse model design and tools
C WinForm DataGridView column full width
plsql不能初始化
NFT卡牌链游系统Dapp开发搭建
Datablau5.0 data asset management product series heavy release
Pregel function in spark graphx (Reprint)
随机推荐
Kotlin学习一:变量、函数、条件语句与循环语句
getchar的使用
Spark RDD的依赖于DAG的工作原理
Dynamic memory management and flexible array
Mysql之一主多从复制
2017年终总结
jps没有namenode和datanode原因
Kotlin学习二:类与对象
Datablau5.0 data asset management product series heavy release
leetcode 32. 最长有效括号
Implementation of bytecode technology in dynamic proxy
Kotlin学习三:集合与Lambda
Why choose b+ tree for index
Data warehouse model design and tools
栈题目:基本计算器 II
As a beginner, I don't want to use eslint
Installation of mysql5.7 (yum, binary, compile and install)
Flutter开发(三十二):Flutter屏幕适配
低代码和无代码有什么区别?
leetcode 209. 长度最小的子数组