摘要: if () {} else if (){} else {} switch (){ case 标号1: 语句1 case 标号2: 语句2 default: 语句f } while while (){} 先执行do 在运算表达式 do { 语句 }while(表达式){} for (语句1;表达式;语 阅读全文
posted @ 2018-12-03 22:40 freeengles 阅读(165) 评论(0) 推荐(0) 编辑
摘要: console.log(1 == 1)console.log(1 =='1')//绝对相等类型数值相等console.log(1 "1")三木运算表达式表达式? 表达式1 :表达式2如果表达式是真,返回表达式1,如果假返回表达式2console.log(1?2:3) 逻辑运算符//and or no 阅读全文
posted @ 2018-12-03 22:09 freeengles 阅读(143) 评论(0) 推荐(0) 编辑