摘要: 1.函数 1.1.定义函数 绝对值函数 定义方式一: function abs(x){ if(x>=0) return x; else return -x; } 如果没有return,函数执行也会返回结果(undefined) 定义方式二: var abs = function(x){ if(x>= 阅读全文
posted @ 2021-08-18 18:06 大聪明397 阅读(60) 评论(0) 推荐(0)
站长工具: