如何让它显示"greeting was found"呢??
function add2() {
switch ("hello world") {
case "hello" + "world":
alert("greeting was found");
break;
case "goodbey":
alert("closing was found");
break;
default:
alert("unexpected message was found");
}
}
add2();