语法糖

118 阅读1分钟
let a=''
console.log(a=a||20)        //20    a为空时,为非a,故返回20