函数参数的尾逗号

function clownsEverywhere(
  param1,
  param2
) { /* ... */ }

clownsEverywhere(
  'foo',
  'bar'
);

  

function clownsEverywhere(
  param1,
  param2,
) { /* ... */ }

clownsEverywhere(
  'foo',
  'bar',
);

  

posted @ 2020-03-24 16:06  banzhuxiang  阅读(163)  评论(0)    收藏  举报