Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用jQuery函数children()选择最后一个子项_Jquery_Children - Fatal编程技术网

使用jQuery函数children()选择最后一个子项

使用jQuery函数children()选择最后一个子项,jquery,children,Jquery,Children,如何特别通过jQuery函数children选择一个子项 我试过了。children'a:last child'没有用。试试这个:使用:last 我想也许你的浏览器没有提供选择元素的方法:last child,所以你可以这样尝试:.children'a'。如果你能分享html和相关的js代码来解决这个问题,last就太好了。 .children('a:last')

如何特别通过jQuery函数children选择一个子项

我试过了。children'a:last child'没有用。

试试这个:使用:last


我想也许你的浏览器没有提供选择元素的方法:last child,所以你可以这样尝试:.children'a'。如果你能分享html和相关的js代码来解决这个问题,last

就太好了。
.children('a:last')