日期:2014-05-16 浏览次数:20377 次
<script> var arr=["","你好","你不好","你是谁?"]; alert(arr[$1]); </script>
function check($id) { switch($id) { case 1: echo "你好" break; case 2: echo "你不好" break; case 3: echo "你是谁?" break; } }