listing0303.aspx
来自「asp入门到精通的源代码」· ASPX 代码 · 共 27 行
ASPX
27 行
<%@ Page Language="VB" %>
<script runat="server">
dim arrColors(5) as String
sub Page_Load(obj as object, e as eventargs)
arrColors(0) = "green"
arrColors(1) = "red"
arrColors(2) = "yellow"
arrColors(3) = "blue"
arrColors(4) = "violet"
Response.Write("The first element is: ")
Response.Write(arrColors(0) & "<p>")
Response.Write("The third element is: ")
Response.Write(arrColors(2) & "<p>")
Response.Write("The 5-3 element is: ")
Response.Write(arrColors(5-3) & "<p>")
end sub
</script>
<html><body>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?