asp中如何一行执行多命令。

来源:百度知道 编辑:UC知道 时间:2024/05/13 23:34:06
比如
<%
response.write "a"
response.write "b"
%>
如何让他的两个书写命令在一行中,并正确执行。

response.write "a" : response.write "b"

大部分VBScript语句都可以用:合并到一行
但控制语句如If Do For等关键字必须在行首,不可以在:后面

response.write "a" &"b"
这样写也可以.