| 1234567891011121314151617181920212223 | 
							- <!DOCTYPE html>
 
- <html lang="en">
 
- <head>
 
-     <meta charset="UTF-8">
 
-     <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
-     <title>Document</title>
 
- </head>
 
- <body>
 
-     <script>
 
-         // 求阶乘
 
-         function factorial(n){
 
-             var res = 1;
 
-             for(var i = 1;i<=n;i++){
 
-                 res *= i;
 
-             }
 
-             return res;
 
-         }
 
-         
 
-         console.log(factorial(12)-factorial(10));
 
-         
 
-     </script>
 
- </body>
 
- </html>
 
 
  |