📌  相关文章
📜  如何在 javascript 代码示例中的事件中发送多个值

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

代码示例2
const selectedEvent = new CustomEvent('custevent', {
    detail: {
        type: "Fiat",
        model:"500",
        color:"white"
    } 
});

hndlecustEvent(event) {
    this.value1 = event.detail.type;
    this.value2 = event.detail.model;
  }