js中使用 && 实现 if 判断

$step < 1 && $step = 5;

等于

if($step < 1) {
    $step = 5;
}

  

posted @ 2019-10-14 15:34  fm060  阅读(2160)  评论(0)    收藏  举报