正文 jquery中遍历指定的对象和数组是哪个方法(jquery历遍对象) 技术帮 V管理员 /2024-06-17/87阅读/0评论 0617 jquery怎么获取select选中的值,默认选中?jquery获取select的option个数有两种方法: 1、dom方式获取option长度: $("#selecttype")[0].options.length; 2、利用层级选择器获取option长度 $("#selecttypeoption").length