📜  函数参数 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:11.209000             🧑  作者: Mango

代码示例1
function createMenu({ title, body, buttonText, cancellable }) {
  // ...
}

createMenu({
  title: "Foo",
  body: "Bar",
  buttonText: "Baz",
  cancellable: true
});