欢迎光临,流星雨博客!!!
  • 36 if 判断语句

    if(){

    }else if(){

    }else{

    }

  • 37 for 循环语句

    for(var i = 0; i< 10; i++){
    if(i==10) {
    break; 中止循环
    }
    if(i==5) {
    continue; 跳出本次循环
    }
    }

  • 40 while 循环语句

    while (条件)
    {
    需要执行的代码
    }

  • 41 do while 循环语句

    do
    {
    x=x + "The number is " + i + "
    ";
    i++;
    }
    while (i<5);