当b的值不为0且b不为true时a=b 否则 a=c false , undefined, null, 0, -0, NaN, "", '' 在js中作为布尔值时都会被转为false 转载于:https://my.oschina.net/u/3282324/blog/1491145