I have the following HTML node structure:
< 12条回答 无人及你 (楼主) 2020-11-28 02:02 var n_numTabs = $("#superpics div").size(); or var n_numTabs = $("#superpics div").length; As was already said, both return the same result. But the size() function is more jQuery "P.C". I had a similar problem with my page. For now on, just omit the > and it should work fine. 0 讨论(0) 查看其它12个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
var n_numTabs = $("#superpics div").size();
or
var n_numTabs = $("#superpics div").length;
As was already said, both return the same result. But the size() function is more jQuery "P.C". I had a similar problem with my page. For now on, just omit the > and it should work fine.