主题:  javascript看看哪里错了

youlong

职务:普通成员
等级:1
金币:0.0
发贴:101
#12006/7/12 11:21:55
switch (type){
    case "S":
        s_td_1.className = "s_on";
        move_xjt.colSpan = 1;
        f.i_k.name = "search";
        f.action = "/trade/catalog.asp<%=weblink_add%>";
        f.business_type.value = "S";
case "B":
        s_td_3.className = "s_on";
        move_xjt.colSpan = 3;
        f.action = "/trade/catalog.asp<%=weblink_add%>";
        f.business_type.value = "B";
case "O":
        s_td_4.className = "s_on";
        move_xjt.colSpan = 7;
        f.i_k.name = "search";
        f.action = "/trade/catalog.asp<%=weblink_add%>";
        f.business_type.value = "O";
case "G":
        s_td_6.className = "s_on";
        move_xjt.colSpan = 9;
        f.i_k.name = "search";
        f.action = "/trade/catalog.asp<%=weblink_add%>";
        f.business_type.value = "G";
    case "P":
        s_td_2.className = "s_on";
        move_xjt.colSpan = 11;
        f.i_k.name = "search";
        f.action = "/trade/catalog.asp<%=weblink_add%>";
        f.business_type.value = "P";
    case "Company":
        s_td_7.className = "s_on";
        move_xjt.colSpan = 5;
        f.action = "/company/index.asp<%=weblink_add%>";
        f.business_type.value = "Company";
    case "information":
        s_td_8.className = "s_on";
        move_xjt.colSpan = 13;
        f.i_k.name = "search";
        f.action = "/information/catalog.asp<%=weblink_add%>";
        f.business_type.value = "information";
}


为什么我用的时候多个条件都成立了



浮尘

职务:普通成员
等级:3
金币:7.0
发贴:1258
#22006/7/12 15:24:19
每个条件后面加个指令:
break;