Event.createEvent()
io error: No such file or directory (os error 2) (/home/runner/work/yari/yari/mdn/translated-content/files/zh-tw/web/api/document/index.md)
建立一個新的事件,該事件必須先以其 init()
method 初始化才行。
語法
範例
js
var newEvent = document.createEvent("UIEvents");