首页 > 技术文章 > if判断

xhxdd 2020-09-22 11:20 原文

if判断

执行

if(cont){
    //cont有值的时候执行,没有值 不 执行
}

不执行

if(!cont){
    //cont有值的时候 不 执行,没有值执行
}

 

推荐阅读