需求:当下拉框值改变时,动态显示隐藏某个字段
![](https://img.kancloud.cn/86/f3/86f3f3d809b1aa9346ef8ea7f3abb095_2114x248.png)
先给下拉框添加一个值改变事件,然后去控制字段
```
if(this.getValue("sex") == "1"){
this.display("input_dc830y28");
//多个字段用数组即可,如:this.display["field1","field2"];
}else{
this.hide("input_dc830y28");
}
```