|
@@ -184,6 +184,9 @@ function newredirect(zbadd,link,sid,sds,index){
|
|
|
function pcredirect(link,sid){
|
|
|
window.open("/pcdetail/"+sid+".html");
|
|
|
}
|
|
|
+
|
|
|
+var isNumber = /^[0-9]+$/
|
|
|
+var isLetter = /^[a-zA-Z]+$/
|
|
|
function keyWordHighlight(value,oldChars,newChar){
|
|
|
if(typeof(oldChars) == "undefined" || oldChars == null || typeof(newChar) == "undefined" || newChar == null || newChar == ""){
|
|
|
return value;
|
|
@@ -198,7 +201,7 @@ function keyWordHighlight(value,oldChars,newChar){
|
|
|
var map = {};
|
|
|
for(var i=0;i<array.length;i++){
|
|
|
var oldChar = array[i];
|
|
|
- if(oldChar.replace(/\s+/g,"") == "" || map[oldChar]){
|
|
|
+ if(oldChar.replace(/\s+/g,"") == "" || map[oldChar]||isNumber.test(oldChar)||isLetter.test(oldChar)){
|
|
|
continue;
|
|
|
}
|
|
|
map[oldChar] = true;
|