代码如下:function AddDropDownList(id,fatherCtl) { if(!document.getElementById(id)) { var ddl = document.createElement(‘select’); ddl.setAttribute(“id”,id); if(fatherCtl&&document.getElementById(fatherCtl)) document.getElementById(fatherCtl).appendChild(ddl); else document.body.appendChild(ddl); } } //删除