标签:alert document return type text while script func charset
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Document</title>
<script type="text/javascript">
window.onload=function(){
function a(b){
var num=1;
while(b>1){
num*=b;
b--;
}
return num;
}
alert(a(4));
};
</script>
</head>
<body>
</body>
</html>
标签:alert document return type text while script func charset
原文地址:http://www.cnblogs.com/saoniansaonian/p/7148790.html