switch(strKey){
 case "ISBN/价格":
 case "ISBN": 
 case "ISBN号": 
    /*代码块*/
   break;//========断
}

解决方案 »

  1.   

    这样:
    switch (strKey){
     case "ISBN/价格":
     case "ISBN":  
     case "ISBN号":
         alert(strKey);
         break;
     default:
         alert("对不起!");
    }
      

  2.   

    JDOC上这样说的switch 语句
    当指定的表达式的值与某个标签匹配时,即执行相应的一个或多个语句。switch (expression) {
       case label :
           statementlist
       case label :
           statementlist
       ...
       default :
           statementlist
    } switch参数只能用strKey==="ISBN"来判断,不能同时判断三个条件
    expression要求值的表达式。label根据 expression 来匹配的标识符。如果 label === expression,则立即从冒号后的 statementlist 处开始执行,直到遇到一个可选的 break 语句,或到达 switch 语句的最后。statementlist要被执行的一个或多个语句。
    所以,正如楼上所说,