沒(méi)有區(qū)別弥姻;
if(value)等價(jià)于if (ToBoolean(value))
非0數(shù)值陨献,非空字符串,對(duì)象為true
對(duì)應(yīng):
if(!value)相反宇驾;
0瞳收;空字符串''碉京,NaN,null螟深,undefined為true谐宙;
沒(méi)有區(qū)別弥姻;
if(value)等價(jià)于if (ToBoolean(value))
非0數(shù)值陨献,非空字符串,對(duì)象為true
對(duì)應(yīng):
if(!value)相反宇驾;
0瞳收;空字符串''碉京,NaN,null螟深,undefined為true谐宙;