双问号语法??
??
双问号语法,在JavaScript中的意思是,如果??左边的值为null或undefined,则取??右边的值。
1 | let object;let key = object ?? true; |
Invitation
aqing
962555446
created:15/04/2021
Welcome to Candyhome
Use this card to join the candyhome and participate in a pleasant discussion together .
Welcome to aqing's candyhome,wish you a nice day .
评论