x/evt@v1.10.2/test/browser.html

­čĺžEventEmitter's typesafe replacement
GitHub Stars
364
Go to latest
browser.html
<script src="../../dist/bundle.js" charset="UTF-8"></script><script> const { Evt } = window["evt"];
window.addEventListener('resize', ()=> console.log("ok") );
Evt.from(window, 'resize').attach(()=> console.log("ok!"));
</script>