php,JS 判断条件为空时
$re = '';
if($re) == false;
$re = '11';
if($re) == true;
php里转换成json的结果为null是 不是布尔值的null 而是 String的 null
if(''){
alert('true');
}else{
alert('false');
}
// 结果是false
$re = '';
if($re) == false;
$re = '11';
if($re) == true;
php里转换成json的结果为null是 不是布尔值的null 而是 String的 null
if(''){
alert('true');
}else{
alert('false');
}
// 结果是false
发表评论: