鏉′欢璇彞涔 select case 璇彞
涓銆佸鏉′欢鍒嗘敮鐨勬椂鍊欎紭鍏堜娇鐢╯elect case缁撴瀯锛
浜屻佹暟瀛楃殑澶ч噺鍒椾妇鏃舵渶濂戒娇鐢╯elect case
涓夈佸繀椤讳娇鐢 end select 鏉ョ粨鏉熷垎鏀粨鏋
绀轰緥锛
濡備笅涓哄紩鐢ㄥ唴瀹癸細
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> 鏉′欢璇彞涔 select case 璇彞 </title>
</head>
<body>
<%
dim a '澹版槑涓涓彉閲
a=6 '缁欏彉閲忚祴鍊
select case a
case 1,2,3,4
response.Write "寰幆璇彞"
case 5,6,7,8
response.Write "鏉′欢璇彞"
end select
%>
</body>
</html>
杩愯缁撴灉锛氭潯浠惰鍙
浜屻佹暟瀛楃殑澶ч噺鍒椾妇鏃舵渶濂戒娇鐢╯elect case
涓夈佸繀椤讳娇鐢 end select 鏉ョ粨鏉熷垎鏀粨鏋
濡備笅涓哄紩鐢ㄥ唴瀹癸細 <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> 鏉′欢璇彞涔 select case 璇彞 </title> </head> <body> <% dim a '澹版槑涓涓彉閲 a=6 '缁欏彉閲忚祴鍊 select case a case 1,2,3,4 response.Write "寰幆璇彞" case 5,6,7,8 response.Write "鏉′欢璇彞" end select %> </body> </html> |
浠ヤ笂灏辨槸ASP鍩虹鍏ラ棬鈥斺旀潯浠惰鍙ヤ箣 select case璇彞鐢ㄦ硶鍜屾牸寮忕殑璇︾粏鍐呭锛屾洿澶氫俊鎭鍏虫敞OD浜戝叾瀹冪浉鍏虫枃绔狅紒