!null // true!undefined // true!'' //true!0 // true一般对于上面3中无用数据,我们一般使用一下临界判断 但是数字0比较特殊if(!!x) { // 当x不为以上三种情况下才执行}