a.setValue(""); 在下拉框控件的编辑完事件中,赋值另一个控件空值,页面上已经清空了。但是提交不生效,控件是允许为空的,是什么原因呢 // 将需要操作的控件存入数组统一处理 var controls = [a , b , c, d, e, f, g , h , i , j]; if (this.getValue() === "0") { controls.forEach(ctrl => { if (ctrl) { ctrl.setEnable(false); //ctrl.setValue(""); } }); } else { controls.forEach(ctrl => { if (ctrl) { ctrl.setEnable(true); } }); } |