📜  js 文档字符串示例 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:02.246000             🧑  作者: Mango

代码示例1
/**
 * Foo takes any argument.
 * The return value is 'baz' in all cases.
 * @param {*} bar - Any argument
 * @param {string} [optionalArg] - An optional argument that is a string
 */
function foo(bar, optionalArg) {
  return 'baz';
}