switch($userName){
case'1':{
$view = new view("application/view/pc/number/number_one.php");
}
case '2':{
$view = new view("application/view/pc/number/number_two.php");
}
case'3':{
$view = new view("application/view/pc/number/number_three.php");
}
case '4':{
$view = new view("application/view/pc/number/number_four.php");
}
}php
注意:app
‘1’:是須要匹配的名字。spa