xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!
摘要: macOS Time Machine All In One macOS 时间机器 All In One 阅读全文
posted @ 2022-09-10 22:37 xgqfrms 阅读(24) 评论(1) 推荐(0) 编辑
摘要: js 空值合并操作符 ?? & 可选链操作符 ?. All In One js 空值合并操作符 `??` 是一个`逻辑操作符`,当左侧的操作数为 `null` 或者`undefined` 时,返回其`右侧操作数`,否则返回`左侧操作数`。 js 可选链操作符 `?.` 允许读取位于连接对象链深处的属性的值,而`不必明确验证`链中的每个引用是否有效。 `?.` 操作符的功能类似于 `. 链式操作符`,不同之处在于,在引用为空 (nullish ) (null 或者 undefined) 的情况下`不会引起错误`,该表达式短路返回值是 undefined。 与函数调用一起使用时,如果给定的函数不存在,则返回 undefined。 阅读全文
posted @ 2022-09-10 09:59 xgqfrms 阅读(573) 评论(0) 推荐(0) 编辑