JS 自定义带默认值的函数 开始想当然地认为可能像php或python等语言中一样 js 代码 复制代码 代码如下: function test(a,b="er"){ JavaScript 2022-04-02 190 点赞 2 评论 287 浏览