简体   繁体   English

我需要了解良好的javascript才能使用jquery吗?

[英]Do I need to know good javascript in order to use jquery?

I do not know javascript right now but I am planning on learning it. 我现在不知道javascript,但我打算学习它。 My question is do I need to have a good understanding of javascript in order to use jquery? 我的问题是,要使用jquery,我需要对javascript有一个很好的了解吗? I already know actionscript and php which are quite similar. 我已经知道actionscript和php非常相似。 Should I study javascript before learning jquery? 我应该在学习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。

It depends on what you need to to with jQuery .. 这取决于您需要使用jQuery ..

of course it helps but most basic operations can be done just calling functions of the framework itself with selectors like: 当然可以,但是大多数基本操作都可以通过选择器调用框架本身的功能来完成,例如:

$('#elementId').hide()

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. 这么快的答案:是的,您应该这样做,但是在不需要不需要jquery的复杂控制流之前,您可以使用基本语法来完成简单的事情。

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之前,这些基本操作都是必不可少的。

jQuery helps you to use the more advanced aspects of Javascript without a deep knowledge of it. jQuery可以帮助您在不了解Java的情况下使用Java的更高级的方面。 However, it would be helpful for you to get a general overview before you dive in to jQuery. 但是,在开始使用jQuery之前获得一般概述将对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM