This is handy, because you only need to remember one standard for finding the elements you want through jQuery and for styling them with CSS.
这很方便,因为您只需要记住一个针对通过jQuery找到想要的元素和利用CSS为元素定义样式的标准。
The $() function returns a jQuery object containing all the elements that match the CSS selector.
$()函数返回一个含有所有与 CSS 选择器匹配的元素的 jQuery 对象。
You first get a reference to the unordered list from Listing 3 by passing a CSS selector to jQuery.
您首先可以通过向jQuery传递一个CSS选择器从清单3中获取这个无序列表的一个引用。
应用推荐