根据选择维度动态显示日期控件,想要按月选择出现 年、月控件、按年选择出现年控件,日期控件不出现,现在是选择了按年或月控件后,日期控件依然存在,是什么问题,java脚本 var form = this.options.form; var value = this.getValue(); if(value == "date"){ form.invisible(["年","月","L年","L月"]); form.visible(["开始日期","结束日期","L开始日期","L结束日期"]); }else if(value == "month"){ form.invisible(["开始日期","结束日期","L开始日期","L结束日期"]); form.visible(["年","月","L年","L月"]); }else if(value == "year"){ form.invisible(["开始日期","结束日期","月","L开始日期","L结束日期",,"L月"]); form.visible(["年","L年"]); } |