随笔分类 -  简便写法

摘要:废话不多说,上菜for in 和 for of 都是数据或者对象的便利for in:输出的是index(下标)for of:输出的是item(便利的值) 阅读全文
posted @ 2022-12-10 14:04 元气攻城狮 阅读(63) 评论(0) 推荐(0)
摘要:if( (aa ?? ' ') !== ' ' ) { } ==> //相当于 if( aa !== null && aa !== undefined && aa !== '') { } 阅读全文
posted @ 2022-02-08 18:08 元气攻城狮 阅读(118) 评论(0) 推荐(0)