Test File 测试文章
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN"> 4 <head> 5 <title> 3_2_(3)_循环结构_i++在 for 中的位置区别 </title> 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 7 <meta name="Keywords" content="" /> 8 <meta name="Description" content="" /> 9 10 <script type="text/javascript"> 11 12 var i; 13 for (i=0; i<5; i++) // ++i、 i++ 在for() 内 输出值都一样 01234 14 { // i++; // ++i、 i++ 单独一行 输出值都一样 12345 15 document.write( i + '<br />'); // ++i :12345 i++ 01234 16 // i++; // ++i、 i++ 单独一行 输出值都一样 01234 17 } 18 19 </script> 20 </head> 21 22 <body> 23 24 </body> 25 </html>
这是第一篇测试文章 !
浙公网安备 33010602011771号