如何计算数组中的特定项目

用户名

我在我的jquery脚本中有此数组:

在此处输入图片说明

我想计算数组中所有名为 div.item.bloc-membre

现在我有返回我75的代码

console.log($(response).length);

谢谢你的帮助 !

epascarello

使用过滤器

console.log($(response).filter("div.item.bloc-membre").length);

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章