摘要: 一.while循环 每一次执行完语句块后,又会跳回去检查小括号里面的布尔值,如果为true,那么又会执行语句块一次 例: `while(true){consle.log("hello")}` `while(true){consle.log("hello")}` `while(true){consle 阅读全文
posted @ 2016-10-16 17:33 王世梅 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 一、引入JS文件的三种方法:内嵌、内联、外联。 1.直接在script标签内部书写代码。 2.通过script标签的src属性,引入外部的JavaScript文件 JS语法 声明变量 例:`var a; a=10;` a=10;` a=10;` a=10;` a=10;` a=10;` a=10;` 阅读全文
posted @ 2016-10-16 17:32 王世梅 阅读(111) 评论(0) 推荐(0) 编辑