我找到一段是判断当前列的,如何修改才能如标题所示呢 var exist=false; var self=this; var s; $("[id*='C']").each(function(){ if($(this).text()==self.getValue()){ exist=true; } }); if(exist){ alert("此数据已存在"); this.setValue(''); this.setText(''); return false; } 如第二列第三列所示 |
立即参与
