开发者社区 问答 正文

js怎么向函数传参数

js怎么向函数传参数

展开
收起
云计算小粉 2018-05-10 20:00:40 1697 分享 版权
2 条回答
写回答
取消 提交回答
  • function calcRectArea(width, height) { return width * height; } console.log(calcRectArea(5, 6)); // expected output: 30
    2019-07-17 22:11:34
    赞同 展开评论
  • test(params)
    2019-07-17 22:11:34
    赞同 展开评论