写一个函数,告知你选的小动物的叫声

<html>
<head>



</head>
<body >

<script type="text/javascript">
 
function scream(animal) {
switch(animal){
case "dog":
document.write('wangwang');
return;
case "cat":
document.write('miao');
return;
case "sheep":
document.write('mie~mie~');
return;
}
}
 
 
</script>

</body>
</html>
posted @ 2019-03-06 09:41  凄惶之月  阅读(817)  评论(0编辑  收藏  举报