摘要: while语句 每次执行完语句块之后,又会跳回去检查小括号()里面的布尔值,如果为true,即再执行语句块。 while(true){ console.log('true') } while(true){ console.log('true') } while(true){ console.log( 阅读全文
posted @ 2016-10-16 20:39 晨曦橙 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 一、引用JS文件的方式 1、内嵌 2、写在标签里面 3、引用外部文件[推荐使用,写在body结束标签之前,优化用户体验] <script type="text/javascript" src="文件路径"> </script > <script type="text/javascript" src= 阅读全文
posted @ 2016-10-16 20:37 晨曦橙 阅读(1305) 评论(0) 推荐(0) 编辑