jquery获得ul下li的个数

var len = $("#list li").length;
 console.log(len);
原文地址:https://www.cnblogs.com/wangyuxue/p/13323130.html