摘要:
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 阅读全文
摘要:
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);</ 阅读全文