- 基本選擇器:#id,class,element,*;
- 層次選擇器:parent > child,prev + next ,prev ~ siblings;
- 基本過濾器選擇器::first,:last ,:not ,:even ,:odd ,:eq ,:gt ,:lt;
- 內容過濾器選擇器: :contains ,:empty ,:has ,:parent;
- 可見性過濾器選擇器::hidden ,:visible;
- 屬性過濾器選擇器:[attribute] ,[attribute=value] ,[attribute!=value] ,[attribute^=value] ,[attribute$=value] ,[attribute*=value];
- 子元素過濾器選擇器::nth-child ,:first-child ,:last-child ,:only-child;
- 表單選擇器: :input ,:text ,:password ,:radio ,:checkbox ,:submit 等;
- 表單過濾器選擇器::enabled ,:disabled ,:checked ,:selected;
筆記 前端需要了解的jQuery選擇器
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.