Java:
int i = 3;
String s = "abc"
JavaScript:
var i = 3;
var s = "abc";
JavaScript中有个===
类型和值都一样才返回
true==是只要值相等就返回true
var a = "66"; var b = 66;
a == b;//返回true
a === b ; //返回false;
for (var i in list) { }
- for(var i = 0; i < 10; i++){
}
<script src= "路径" type="text/javascript"></script>
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |