![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jQuery
iteye_1678
这个作者很懒,什么都没留下…
展开
-
jQuery Selectors
To select elements using jQuery, we wrap the selector in $(), as in $("p a.specialClass"). The $() function (an alias for the jQuery() function) returns a special Java-Script object containing...原创 2010-11-28 12:02:55 · 217 阅读 · 0 评论 -
$ in jQuery
1.The jQuery wrapper:Select and wrap DOM elements to operate uponThe $() function (an alias for the jQuery() function) returns a special Java-Script object containing an array of the DOM elemen...原创 2010-11-28 13:43:00 · 110 阅读 · 0 评论 -
Managing the wrapped element set
Remember, any jQuery wrapped set can be used as an array of element references. 1.Determining the size of the wrapped setCommand syntax:size()Returns the count of elements in the wrapped set...原创 2010-11-28 14:43:45 · 88 阅读 · 0 评论 -
Manipulating element properties and attributes
1.Manipulating element propertiesCommand syntax:each(iterator)Traverses all elements in the matched set invoking the passed iterator function for each.Parametersiterator (Function) A function ...原创 2010-11-28 23:19:11 · 95 阅读 · 0 评论 -
Changing element styling
1.Adding and removing class names Command syntax:addClass(names)Adds the specified class name or class names to all elements in the wrapped setParametersnames (String) A string containing th...原创 2010-11-29 20:48:50 · 62 阅读 · 0 评论 -
Setting element content
1. Replacing HTML or text content Command syntax:html()Obtains the HTML content of the first element in the matched set.ParametersnoneReturnsThe HTML content of the first matched element...原创 2010-11-29 22:22:33 · 124 阅读 · 0 评论