1. 逻辑赋值运算符 逻辑空赋值 (??=) 逻辑与赋值 (&&=) 逻辑或赋值 (||=) let A // 当 A为 undefined 或者 null 时, ??= 赋值 A ??= 12 // 12 let B = 0 // 当 B为 Boolean(B) === false 时, ||= 赋值 B ||= 12 // 12 let C = 12 // 当 C为 Boolean(C) === true 时, &&= 赋值 C &&= 0 // 0 2. String.repla...
blog.lolis.top2 min read
No responses yet.