I have the following HTML node structure:
< 12条回答 情歌与酒 (楼主) 2020-11-28 01:46 Try this for immediate child elements of type div $("#foo > div")[0].children.length 0 讨论(0) 查看其它12个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
Try this for immediate child elements of type div
$("#foo > div")[0].children.length