jQuery框架内部 [英] jQuery framework internals

查看:79
本文介绍了jQuery框架内部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想了解jquery框架的内部构造,了解代码的难度。开始使用。



感谢所有有用的输入。编辑主题,因为我添加个别评论的空间有限。
我已经写了很多基本的JavaScript代码。
我知道基本的DOM,使用事件处理程序,知道CSS基础。我已经阅读了你提到的许多话题,我熟悉它,虽然不是专家,也没有编码一些高级的话题,如闭包。这里是我使用的书籍到目前为止头部第一个javascript - 开始作为一个起始点。
我的朋友推荐的书籍,我经常使用的是Javascript - 最终指南,Javascript - 好的部分(我读过这段时间,对我来说很难)。
我的朋友刚刚推荐了Javascript忍者的秘密 - John Resig。好像好一个
我订购了你上周推荐的Javascript Design pattern book



我已经阅读了 https://developer.mozilla.org/en/JavaScript 你指出我。我会检查你指出的一些其他资源。



让我再想一想,如果我想在发布具体问题之前多做一点阅读有一个jquery。



感谢
苏珊

解决方案

要理解实际的来源将需要一定程度的JavaScript知识 - 如果您还不知道发生了什么,那么您基本上需要了解更多Javascript。



关键事项学习:




  • 原型继承(ECMAScript中使用的
    继承,
    核心语言,JavaScript为
    $ b
  • Lambdas(内联函数)

  • 关闭(从内部函数访问的外部范围的外部变量)

  • 正则表达式(用于匹配输入到jQuery的选择器字符串)

  • DOM(用于与标记语言交互的DOM API)



当学习时,使用Firebug,以便您可以交互地评估您的表达,并立即看到发生了什么



一个很好的免费资源,建议:
http://eloquentjavascript.net/contents.html



如果您是DOM脚本/ Javascript的初学者:





如果您是中级: / p>



如果你已经是中级,想成为一名专家:





其他技术参考:





如果您对某个代码段有特定问题,请问这里。我可以推荐更多高级问题的另一个资源是jQuery邮件列表或irc://irc.freenode.net/jquery,其中jresig自己挂断并回答问题。还有其他的古代作家,像阿吉皮亚诺/保罗/ nlogax那样住在那里。


I am trying to understand the internals of how jquery framework is written and finding it hard to understand the code.

Does anyone have any suggestions regarding a good way to get started.

Thanks for all the useful input. Editing the topic since I had limited space for adding individual comments. I have written a lot of basic javascript code. I know basic DOM, have used event handlers, know CSS basics. I have read about many of the topics you have mentioned and I am familiar with it although not an expert and have not coded some of the advanced topics like closures. Here are the books I have used so far Head first javascript - good in the beginning as a starter. Books my friends have recommended and I use regularly are Javascript - The Definitive Guide, Javascript - The good parts (I read this a while ago and it was hard for me at the time). My friend just recommended Secrets of Javascript Ninja - John Resig. Seems like a good one. I ordered the Javascript Design patterns book you recommend last week

I have read the https://developer.mozilla.org/en/JavaScript you pointed me to. I will checkout some of the other resources you pointed me to.

Let me think a little more regarding if I want to do a little more reading before I post specific questions I have on jquery.

Thanks Susan

解决方案

To comprehend the actual source would require some degree of Javascript knowledge - If you don't already know what's going on then you basically need to learn more Javascript.

Key things to learn:

  • Prototypal inheritance ( the inheritance used in ECMAScript, the core language on which Javascript is based upon )
  • Lambdas ( inline functions )
  • Closures ( outer variables from outer scope accessible from inner functions )
  • Regular expressions ( used for matching the selector strings fed to jQuery )
  • DOM ( The DOM API which is used to interact with markup languages )

When learning, use Firebug so you can evaluate your expressions interactively and immediately see what's going on

An excellent free resource for learning that I would recommend: http://eloquentjavascript.net/contents.html

If you're a beginner to DOM Scripting/Javascript:

If you're intermediate level:

If you're past intermediate level and want to be an expert:

Other technical references:

If you have specific questions about a certain code snippet just ask here. Another resource that I can recommend for more advanced questions would be the jQuery mailing list or irc://irc.freenode.net/jquery where jresig hangs out himself and comes by and answers questions. There are other guru ops who reside there like ajpiano/paulirish/nlogax.

这篇关于jQuery框架内部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆