标签:style color java ar for on c new javascript
<script type="text/javascript">
var theBeatles=new Array("John","Paul","Gearge","Ringo");
for(var loopCounter=0;loopCounter<theBeatles.length;loopCounter++){
document.write(theBeatles[loopCounter]+"<br>");
}
var indexKey;
for(indexKey in theBeatles){
document.write("indexKey is "+indexKey+"<br>");
document.write("item value is "+theBeatles[indexKey]+"<br><br>");
}
</script>
标签:style color java ar for on c new javascript
原文地址:http://www.cnblogs.com/vonk/p/3968328.html