📜  javascript 选项文档 - Javascript 代码示例

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

代码示例1
/**
 * @description
 * Compliment someone on their something.
 *
 * @param {Object} options
 * @param {String} options.name    A person's name
 * @param {String} options.feature A person's property
 */
function flatter (options) {
  options = options || {};
  console.log('%s, loving your %s!', options.name, options.feature);
}