Created
July 11, 2018 08:56
-
-
Save LaughingVzr/1c9b96c9e1bff625cf32f6c4b2e12bc2 to your computer and use it in GitHub Desktop.
[JavaScript This的应用] #javascript #EMACScript
This file contains hidden or 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
document.getElementById=(function(func){ | |
return function(){ | |
return func.apply(document,arguments); | |
} | |
})(document.getElementById); | |
var getId = document.getElementById; | |
var div = getId('div1'); | |
console.log(div.id); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment