mercredi 21 octobre 2020

onhashchange cannot fully monitor the hash change event

I registered an onhashchange event on the page like this:

window.addEventListener('hashchange', () => console.log('hash change!'))

It can monitor the hash changes that I manually input:

But no hash change caused by the operation page was found:

Is there any way to discover all hash change events?

And the page is developed by vue, so here is two listeners can be found:

Aucun commentaire:

Enregistrer un commentaire