📌  相关文章
📜  pdfjs 将自定义事件处理程序添加到 viewer.js - Javascript 代码示例

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

代码示例2
// you can put anywhere in viewer.js (pdfjs/web/viewer.js) and listens to it
const event = document.createEvent("CustomEvent");
event.initCustomEvent("your_new_event", true, true, {});
document.dispatchEvent(event);