<script type="text/javascript">
<!--
var concernsend = 'leer,,,';
var concernsearch = ',,leer,rose,';
var csearch = concernsearch.split(',');
var csend = concernsend.split(',');
var ok = arr_dive(csearch,csend);
//alert(ok);
if(ok==''){
alert('ok!!');
}else{
alert(ok);
}
function arr_dive(aArr,bArr){ //第一个数组减去第二个数组
if(bArr.length==0){return aArr}
var diff=[];
var str=bArr.join("""");
for(var e in aArr){
if(str.indexOf(aArr[e])==-1){
diff.push(aArr[e]);
}
}
return diff;
}
</script>
<!--
var concernsend = 'leer,,,';
var concernsearch = ',,leer,rose,';
var csearch = concernsearch.split(',');
var csend = concernsend.split(',');
var ok = arr_dive(csearch,csend);
//alert(ok);
if(ok==''){
alert('ok!!');
}else{
alert(ok);
}
function arr_dive(aArr,bArr){ //第一个数组减去第二个数组
if(bArr.length==0){return aArr}
var diff=[];
var str=bArr.join("""");
for(var e in aArr){
if(str.indexOf(aArr[e])==-1){
diff.push(aArr[e]);
}
}
return diff;
}
</script>