摘要: return sKey void 0?obj:obj[sKey]||'' void 0 undefined 判断为true 上式判断函数中是否传入了sKey参数,如果传入了取后值,未传入取前值 ??是合并运算符,当值不为undefined和null时,取前值,否则去后值 a=a??'hello' 阅读全文
posted @ 2021-07-11 15:21 孤城牧笛 阅读(66) 评论(0) 推荐(0)