摘要: //while循环实现function calNum(n) { var product = 1; while(n > 1){//1*5*4*3*2,1*n*(n-1)*(n-2)*...*2 product *= n; n--; } return product; } console.log(calNum(5)) //js实... 阅读全文
posted @ 2016-08-16 11:09 俄小发 阅读(3365) 评论(0) 推荐(0) 编辑