CustomJSError : Cannot read properties of undefined (reading 'getValue') 2.查询按钮下的js事件: var start = this.options.form.getWidgetByName("kssj").getValue(); //开始时间 var end = this.options.form.getWidgetByName("jssj").getValue(); //结束时间 if( start == "" || start==null){ //判断开始时间是否为空 alert("错误,开始时间不能为空"); //开始时间参数为空时提示 return false; }; if(end == "" || end==null){ //判断结束时间是否为空 alert("错误,结束时间不能为空"); //结束时间参数为空时提示 return false; }; if( start > end){ //判断开始时间是否大于结束时间 alert("错误,开始时间不能大于结束时间"); //开始时间大于结束时间时提示 return false; } |