开发者

jQuery - Count up array

Just won开发者_Go百科dering 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


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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜