下拉框js
var a=this.options.form.getWidgetByName("下拉框控件名").options.data.options.dataSource._findAllValue().length;
console.log(a);
function getLength(){alert(document.getElementById("mySelect").length);//元素个数}