来一段JS。当控件“日期分类”的值为年时,展示年份控件,当“日期分类”控件的值为年月时,展示“年月”日期控件。 FVS的控件
日期分类控件编辑后事件 var aa=this.getValue(); var p_year= duchamp.getWidgetByName("p_year"); var p_month= duchamp.getWidgetByName("p_month"); if(aa=="年"){ p_year.setVisible(true); p_month.setVisible(false); } else{ p_year.setVisible(false); p_month.setVisible(true); }