<script type="text/javascript">
var ceshi;
console.log(ceshi);
//當前判斷ceshi若是不等於null/undefined/0/""/等值就執行下面的邏輯
if(!!ceshi){
alert(1)
}else{
alert(2)
}
</script>javascript