5.js中的判断if和for 5.js中的判断if和for1.求绝对值的函数//求绝对值的函数function abs (x) {if (x>=0){return x;} else {return -x;}};abs(-7);2.计算阶层的函数//计算阶乘的函数function factorial (n) {var product = 1;... Other 2023-05-17 53 点赞 0 评论 80 浏览