发布时间:2016-01-13 15:42:08
1 检测是否有选中if(objSelect.selectedIndex > -1) {//说明选中} else {//说明没有选中}2.动态创建selectfunction createSelect(){var mySelect = document.createElement("select"); mySelect.id = "mySelect"; document.body.appendChild(mySelect); }3.添加选项optionfun.........【阅读全文】