摘要: ?操作符或可选的链式运算符是一个很有用的运算符,用于检查一个值是否已经被设置,当它被设置后再继续。 if(data && data.subdata && data.subdata.name "cool") { console.log("hi") } // Is the same as if(data 阅读全文
posted @ 2022-02-08 10:19 菜鸟小何 阅读(82) 评论(0) 推荐(0) 编辑