var nary = this.rangeTwoPrice.sort();
for (var i = 0; i<this.rangeTwoPrice.length;i++){
if(nary[i]==nary[i+1]){
this.$message.error('区间金额不能重复')
this.ruleFormjudgebol = false
return
}else {
this.ruleFormjudgebol = true
}
}
判断数组是否有重复值
最新推荐文章于 2023-02-28 23:07:33 发布