Last active
December 15, 2015 22:39
-
-
Save niceaji/5334697 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
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