我需要了解 javascript 才能使用 jquery 吗?
我现在不懂javascript,但我计划学习它。我的问题是我需要很好地理解 javascript 才能使用 jquery 吗?我已经知道actionscript 和php 非常相似。学习jquery之前应该先学习javascript吗?
I do not know javascript right now but I am planning on learning it. My question is do I need to have a good understanding of javascript in order to use jquery? I already know actionscript and php which are quite similar. Should I study javascript before learning jquery?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这取决于您需要使用jQuery..
当然它有帮助,但大多数基本操作只需使用选择器调用框架本身的函数即可完成,例如:
所以快速回答:是的,您应该但是除非您不需要 jquery 的复杂控制流程,否则您可以仅使用基本语法完成简单的操作。
编辑:当然,如果不知道如何将函数附加到元素,或者如何在加载文档时执行函数,您将无能为力,因此在使用任何类型的 jQuery 之前,这些基本的东西都是必不可少的。
It depends on what you need to to with jQuery..
of course it helps but most basic operations can be done just calling functions of the framework itself with selectors like:
So quick answer: yes, you should but until you don't need complex control flow over jquery you can do simple things just with basic syntax.
EDIT: of course without knowing how to attach functions to elements, or how to execute functions when document is loaded you can't do anything, so these basic things are essential before any kind of jQuery usage.
可能不会,尽管它不会造成伤害。如果您学习 jQuery,很可能您最终也会学习 Javascript。
Probably not, although it wouldn't hurt. Chances are, if you learn jQuery, you'll also wind up learning Javascript along the way.
jQuery 可以帮助您在不深入了解 Javascript 的情况下使用 Javascript 的更高级方面。不过,在深入了解 jQuery 之前了解一下总体概述会对您有所帮助。
jQuery helps you to use the more advanced aspects of Javascript without a deep knowledge of it. However, it would be helpful for you to get a general overview before you dive in to jQuery.