为空判断时写法 if(value !== null && value !== undefined && value !== ''){ //... } 用空值合并运算符改进 if(value??'' !== ''){ //... } 空值合并操作符(??) MDN:空值合并运算符