var ssq_type = this.options.form.getWidgetByName("ssq_type").getValue(); if(ssq_type =="按月"){ this.options.form.getWidgetByName("start_ssq").setVisible(false); this.options.form.getWidgetByName("end_ssq").setVisible(false); this.options.form.getWidgetByName("zhi").setVisible(false); this.options.form.getWidgetByName("ssq_month").setVisible(true); }else{ this.options.form.getWidgetByName("start_ssq").setVisible(true); this.options.form.getWidgetByName("end_ssq").setVisible(true); this.options.form.getWidgetByName("zhi").setVisible(true); this.options.form.getWidgetByName("ssq_month").setVisible(false); } 我使用单选按钮组控制日期控件可见或隐藏达到交互效果,在PC端无报错,移动端就会报错CustomJSError : Cannot read properties of undefined (reading 'setVisible'); |