Ctrl+/
IE11
F11
ESC
PgUp
PgDn
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JavaScript闭包与while循环</title>
</head>
<body>
<script type="text/javascript">
var index = 0;
for(var i=10; i--;){
document.write(index + "____" + index++ + '<br/>');// 输出的index的值是一样的
}
document.write('<hr/>');
index = 0;
document.write(index++ + "____" + index + '<br/>');//第一个index的值比第二个小1,因为第二个的值是第一个+1之后的
</script>
</body>
</html>
CSS代码...
JS代码...
xxxxxxxxxx