jQuery - 计算数组

发布于 2024-12-04 09:42:07 字数 67 浏览 2 评论 0原文

只是想知道如何找出数组中有多少个数组并循环它们。 我想创建一个后退和下一个函数,允许用户在 1,2,3,5,6 之间切换

Just wondering how to I find out how many arrays are in a array and loop though them.
I want to create a back and next function which will allow a user to switch between 1,2,3,5,6

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

何以心动 2024-12-11 09:42:07

我将研究JavaScript数组对象;

”您正在寻找.length属性

在这种情况下,再次使用.length属性。

http://api.jquery.com/length/

I'd be reseaching the Javascript array object;

http://www.w3schools.com/jsref/jsref_obj_array.asp

I think the property you are looking for is the .length property

http://www.w3schools.com/jsref/jsref_length_array.asp

Or are you talking about the number of elements selected in jquery using a selector?

In which case use the .length property again.

http://api.jquery.com/length/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文