摘要:
javascript直接写document,for-in用来枚举,如下图:<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script language="Javascript" type="text/javascript" > for (var propName in window) { document.write(propName); docum 阅读全文
posted @ 2013-05-07 21:20
roytanlu
阅读(205)
评论(0)
推荐(0)
摘要:
do-while和while的区别在于do-while最少会执行一次好吗。先看do-while:<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script language="Javascript" type="text/javascript" > var i=10; do{ i+=2 }while (i<10); alert(i);</ 阅读全文
posted @ 2013-05-07 21:10
roytanlu
阅读(236)
评论(0)
推荐(0)

浙公网安备 33010602011771号