Skip to content

Instantly share code, notes, and snippets.

@zhjgithub
Created July 6, 2017 08:15
Show Gist options
  • Save zhjgithub/7829a27dd18f7d3538fc2b8f4014caec to your computer and use it in GitHub Desktop.
Save zhjgithub/7829a27dd18f7d3538fc2b8f4014caec to your computer and use it in GitHub Desktop.
elem.addEventListener('click', (function(numCopy) {
```
return function() {
alert(numCopy)
};
```
})(num));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment