📅  最后修改于: 2022-03-11 14:56:19.548000             🧑  作者: Mango
代码示例2
var myDropDown=$("#myDropDown");
var length = $('#myDropDown> option').length;
//open dropdown
myDropDown.attr('size',length);