直接修改这个列好像不得行。https://bbs.fanruan.com/wenda/question1/103544.html(帖子最后一个回答)
var exist=false;
var self=this;
var s;
$("[id*='B']").each(function(){
if($(this).text()==self.getValue()){
exist=true;
}
});
if(exist){
alert("此数据已存在");
this.setValue('');
this.setText('');
return false;
点击增加按钮过后这个JS好像不起作用
var arr=contentPane.getWidgetsByName("bw"); //获取扩展下拉单选按钮组控件bw if(arr[0]!=undefined) { var sum=0; for(var i=0;i<arr.length-1;i++) { //alert(arr[i].getValue()); if(this.getValue()==arr[i].getValue()){ sum+=1 }//return false; } if(sum>=1){ FR.Msg.alert("提示","数据重复."); this.setValue("") this.setText("") } }
编辑结束事件