摘要: 一、ES 5 中函数默认值写法 function total(x, y, z) { if (y undefined) { y = 2 } if (z undefined) { z = 3 } return x + y + z } console.log(total()) // NaN console 阅读全文
posted @ 2021-02-16 16:47 Leophen 阅读(315) 评论(0) 推荐(0) 编辑