jQuery - 计算数组
只是想知道如何找出数组中有多少个数组并循环它们。 我想创建一个后退和下一个函数,允许用户在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将研究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
propertyhttp://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/