使用“HTML项目”组件可以去除下拉列表中的“-------------------”,基本上是用在有下拉列表的地方.
<script type="text/javascript">
var form = getFormWarpRequest();
var listB = form._oLstChoicesp_month;
listB.options[0].text = "统计日期";
listB.remove(1);//不
选“--------”
listB.removeAttribute(0);//不选参数
listB.removeAttribute("hasLabel");//默认值不选
</script>