?? 双问号判断

??双问号只处理判断??前面的是不是undefined和null

undefined ?? [] //输出[]
null ?? [] //输出[]

posted @ 2022-12-09 17:16  陈陈陈在成长  阅读(23)  评论(0)    收藏  举报