How do jquery work




















In javascript, everything is an object. Functions are objects, and objects have properties which can be any object, including functions! Show 1 more comment. Active Oldest Votes. Sorry for my bad English, I hope this makes sense to you. Improve this answer. Add a comment. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Active 5 years, 4 months ago. Viewed 3k times.

Thanks :. Improve this question. Abhirath Mahipal Abhirath Mahipal 1 1 silver badge 5 5 bronze badges. The reason your question was deemed Too Broad on Stack Overflow is because we don't know your knowledge level. Assuming that you have a basic understanding of Javascript and HTML, we'd have an awful lot of ground to cover.

An adequate answer to your question could very well exceed the 30, character limit imposed by the SE software. I suspect you want to know something more specific than that. This is explained at How jQuery works. It's not a conversion to Javascript; you're simply calling Javascript functions. RobertHarvey I did mention my knowledge level. I wanted a blow by blow account of what happens when a browser reads JavaScript and I also asked additional 2 questions which made it very broad.

I ended up asking it on Reddit. Getting the hang of asking the right questions. I think you should read the annotated source code of jquery as well as watch paul irish's videos on jquery.

That would give you a better idea of how jQuery works. What exactly happens underneath? There is only one way to answer, and this is looking at the jquery source: github. Show 1 more comment. Active Oldest Votes. Hope it helps :. Improve this answer. Add a comment. Copy Code. Sidebar: How to define anonymous function In JavaScript, you can define an anonymous function and call it right away. Sidebar: Function is the first class object in Javascript JavaScript is a functional programming style language, but the function is not a pure function in our traditional definition.

The function can be created on fly, can have properties and methods, and can be passed to other functions. The Car class has a property Model that is initialized with parameter in function class constructor and a Drive method. So, you can create as many instance of Car class as you want.



0コメント

  • 1000 / 1000