摘要: <script> const good = 'the-world' const Person = { 'hello-world':"hello", //标识符形式 [good]:'world', //属性名表达式形式 ['a'+'b']:'hi' //属性名表达式形式 } // 调用形式: cons 阅读全文
posted @ 2021-11-09 11:02 亦茫茫 阅读(229) 评论(0) 推荐(0) 编辑
摘要: ?. 链式判断运算符 <==> a?.[++x] 相当于 a == null?undefined : a[++x] (a如果为undefined或者null,则返回undefined) undefined == null 左侧的对象是否为null或undefined。如果是的,就不再往下运算,而是返 阅读全文
posted @ 2021-11-09 10:53 亦茫茫 阅读(1823) 评论(0) 推荐(0) 编辑