标签:rip i++ ++ alert nbsp == var bsp for
<script>
var a = ‘‘;
for(var x = 0; x <= 100; x++){
if ( ( x + 3 ) % 10 == 0 )
{a = a + x + ","
}}
for(var y = 7; y <= 100; y++){
if(y % 7 ==0)
{a = a + y +","}
}
for(var z =70; z <=79; z++)
if(z)
{a = a + z + ","}
alert(a)
/*
* var a = ‘‘;
for(var i = 1; i <= 100; i++)
{if(i % 2 == 0)
{a = a + i + ","
}}
alert(a);
*/
var a = ‘‘;
for(var i = 1; i <= 100; i++)
{if(i % 2 != 0)
{a = a + i + ","
}}
alert(a);
</script>
标签:rip i++ ++ alert nbsp == var bsp for
原文地址:http://www.cnblogs.com/buzhiheyan/p/7571781.html