const customEvent = new CustomEvent. ('my-event', {detail: data});. el.dispatchEvent(customEvent); ... A custom event 'my-event' is fired.
確定! 回上一頁