标签:desc pre har oct ext nal img class w3c
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>网页标题</title> <meta name="keywords" content="关键字列表" /> <meta name="description" content="网页描述" /> <link rel="stylesheet" type="text/css" href="" /> <style type="text/css"></style> </head> <body> <script type="text/javascript"> /* 输出: 999999999 88888888 7777777 666666 55555 4444 333 22 */ for(var i=9;i>=2;i--){//循环了8次,因为从上到下的,I=9 所以I>=2 后面I-- for(var j=1;j<=i;j++){ document.write(i) } document.write(‘<br>‘) } /* 输出 1 22 333 4444 55555 666666 7777777 88888888 999999999 */ for(var i=1;i<10;i++){//循环9次 for(var j=1;j<=i;j++){ document.write(i)} document.write(‘<br>‘) } </script> </body> </html>
标签:desc pre har oct ext nal img class w3c
原文地址:http://www.cnblogs.com/1135721684-qq/p/6143446.html