开发者

Where can I learn about the "symbols"that are used in jQuery?

Besides regular expressions and selectors, where can I learn what the symbols mean.. such as

[0]=-

and characters like that. Ive read 2 books about jQuery and this still gives me a hard time to understand. Is there a cheat sheet, or an eBook or tutorial on these?

Sorry its so cold here in Virginia its hard to type.

example:

$("img[alt='moon']").animate({left:'+=256'},2500,function(){

I know what .animate does, just not those symbols. Theres alot more then that.

Edit: Okay I found out they are called "Operators".开发者_开发百科 Any guide, book, tutorial that can explains these?


All "special" symbols used by jQuery are for sure described in the documentation. E.g. for animate:

Animated properties can also be relative. If a value is supplied with a leading += or -= sequence of characters, then the target value is computed by adding or subtracting the given number from the current value of the property.

And for the selector syntax: jQuery Selectors.

So if you find a method that uses "special" symbols, check its documentation. If you can't find any information there, it is probably normal JavaScript syntax and you should consult a JavaScript reference.


I think this W3C page will explain it better than I:

http://www.w3schools.com/js/js_operators.asp

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜