你这个编辑后事件写js
var a=this.getValue();
if(a>50)
{
alert("最大值50");
this.setValue("50");
}
下拉框中直接限制1-50的数字呀,然后用户不能自定义就行了!
下拉框直接数字字典的公式 取消允许自定义值以后,用户是不可以随便录入的,只能从下拉框中选择!!!
range(1,50)
range(0,50,10)
编辑后事件 var aa=this.getValue() if(aa>50){ alert("超过50,重新选择"); this.setValue(50); }