Skip to content

Instantly share code, notes, and snippets.

@hanhan1978
Created May 21, 2017 21:45
Show Gist options
  • Save hanhan1978/7791c0d14f19b1ba7d06b1c7e342be79 to your computer and use it in GitHub Desktop.
Save hanhan1978/7791c0d14f19b1ba7d06b1c7e342be79 to your computer and use it in GitHub Desktop.
function doSomething(number){
console.log(number);
}
$('.links > a').on({
mouseenter: function () {
$(this).css('color', 'red');
},
mouseout: function() {
$(this).css('color', '');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment