<script type="text/javascript">
i=window.screen.height;
x=window.screen.width;
document.write(i+"<br>");
document.write(x);
</script>
i=window.screen.height;
x=window.screen.width;
document.write(i+"<br>");
document.write(x);
</script>
2015-07-11
var arr=["*",'##',"***","&&","####","##"];
//显示数组长度
document.write(arr.length+"</br>");
//将数组内容输出,完成达到的效果。
for(var i=0;i<5;i++)
{
document.write(arr[i]+"</br>")
}
我学过点php 会点循环
//显示数组长度
document.write(arr.length+"</br>");
//将数组内容输出,完成达到的效果。
for(var i=0;i<5;i++)
{
document.write(arr[i]+"</br>")
}
我学过点php 会点循环
机智的我先注释掉再继续写~
初始化变量,在()内,则变量只在for循环内起作用。如果在for循环外定义变量。那么,除了for循环,其它也可以用这个变量。
初始化变量,在()内,则变量只在for循环内起作用。如果在for循环外定义变量。那么,除了for循环,其它也可以用这个变量。
2015-07-10