It is my Computer Notes.
Using Guide : object-key or object-key-key
e.g. Step 1 Blog Search : [mysql-run] and then Step 2 ctrl+F [mysql-run]
{bookMark me : Ctrl+D}
2013年8月3日 星期六
javascript array for
<html>
<body>
<script type="text/javascript">
var x
var mycars = new Array()
mycars[0] = "Saab"
mycars[1] = "Volvo"
mycars[2] = "BMW"
for (x in mycars)
{
document.write(mycars[x] + "<br />")
}
</script>
</body>
</html>
沒有留言:
張貼留言