用switch语句没有显示??那里面错了?
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title></title>
<style>
p{
color:red;
}
</style>
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.js"></script>
</head>
<body>
<h2>fadeOut</h2>
<p>测试文字淡入效果</p>
<p>慕课网,专注分享</p>
淡出的隐藏效果:
<select id="animation">
<option value="1">fadeOut( )</option>
<option value="2">fadeOut( "slow" )</option>
<option value="3">fadeOut( 3000 )</option>
<option value="4">fadeOut( 1000, complete )</option>
<option value="5">fadeOut( 1000, "linear" )</option>
<option value="6">fadeOut( options )</option>
</select>
</br></br>
<input id="btnFadeOut" type="button" value="点击淡出隐藏" />
<input id="btnshow" type="button" value="显示" />
<script type="text/javascript">
//【显示】按钮
$("#btnShow").click(function() {
$("p").show();
});
//【隐藏】按钮
$("#btnFadeOut").click(function() {
var v = $("#animation").val();
switch(v){
case 1:$("p").faseOut();break;
case 2:$("p").faseOut('slow');break;
case 3:$("p").faseOut(3000);break;
case 4:$("p").faseOut(2000,function(){
alert("隐藏完毕!")});break;
case 5:$("p").faseOut(1000,linear);break;
default:$("p").faseOut({duration:1000});
}
});
</script>
</body>
</html>