打印倒正金字塔形 使用prompt()方法输入打印的行数,在页面上输出一个倒正金字塔形。 代码片 // An highlighted block <script type="text/javascript"> var n=prompt("请输入要打印的行数:",""); for(var i=n;i