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

📅  最后修改于: 2022-03-11 15:02:50.777000             🧑  作者: 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);