Update article.md

This commit is contained in:
LeviDing 2020-03-27 18:39:33 +08:00 committed by GitHub
parent 14cd9ec89e
commit 2efef249ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -263,7 +263,7 @@ If we don't like it, we can either put the `dispatchEvent` (or other event-trigg
document.addEventListener('menu-open', () => alert('nested'));
</script>
```
```
Now `dispatchEvent` runs asynchronously after the current code execution is finished, including `mouse.onclick`, so event handlers are totally separate.