摘要: 四、for循环语句 4.1 认识for循环 在控制台输出1~100 100行语句: 1 console.log(1); 2 console.log(2); 3 console.log(3); 4 console.log(4); 5 console.log(5); 6 console.log(6); 阅读全文
posted @ 2017-03-19 07:05 行走de猫 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 3.1 if语句初步 如果……那么……否则…… if就是英语“如果”的意思,else就是“否则”。 举个例子: 1 if(明天不下雨){ 2 我就出去玩; 3 }else{ 4 我就在家写作业; 5 } 公式: 1 if(条件表达式){ 2 条件为真的时候做的事情 3 }else{ 4 条件为假的时 阅读全文
posted @ 2017-03-19 07:01 行走de猫 阅读(620) 评论(0) 推荐(0) 编辑