Created
May 16, 2020 09:05
-
-
Save AirStair/c2e057a53e871ca6d729e90a01e4e8b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.defineProperty(document.body, 'addEventListener', { | |
value: function (e, callback) { | |
callback({ | |
target: { | |
value: 'hhhhh' | |
} | |
}); | |
} | |
}); | |
document.body.addEventListener('click', function (e) { | |
alert(e.target.value) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment