Skip to content

Instantly share code, notes, and snippets.

@niceaji
Last active December 15, 2015 22:39
Show Gist options
  • Save niceaji/5334697 to your computer and use it in GitHub Desktop.
Save niceaji/5334697 to your computer and use it in GitHub Desktop.
var jQuery=function(selector){
return {
addClass : function(){
console.log("addClass()");
return this;
},
css : function(){
console.log("css()");
return this;
},
html : function(){
console.log("html()");
return "html value"; //this 를 리턴하지 않음
}
}
};
jQuery(".wrap").css().addClass().html();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment