如下爲引用內容: <%@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> 條件語句之 if ... then ... else 語句 </title> </head> <body> <% dim a '聲明一個變量 a=9 '給變量賦值 if a<8 then response.write "循環語句" '條件語句 elseif a>6 and a<18 then 'elseif ... then 嵌套 response.write "條件語句" else response.Write "sub過程" end if %> </body> </html> |