摘要: 1、函数 (1)定义函数 不存在参数如何规避 1 <script> 2 var abs = function (x) { 3 if(typeof x !== "number"){ 4 throw 'Not a Number'; //手动抛出异常 5 }else if(x>0){ 6 return x 阅读全文
posted @ 2022-07-03 18:09 浑浑噩噩一只小迷七 阅读(37) 评论(0) 推荐(0)