jQuery :last-of-type 选择器
-
定义和用法
:last-of-type 选择器选择其父元素的特定类型的最后一个子元素的所有元素。提示:这与 :nth-last-of-type(1) 相同。提示:使用 :first-of-type 选择器选择其父级的特定类型的第一个子元素的所有元素。 -
语法
$(":last-of-type") -
参数
参数 必需的 描述 该选择器没有任何参数 -
-