<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<title>lovehui</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<%
dim a,b,c,cc
dim shu
shu=100
a="小官"
b="小会"
'c=a+"love"+b+shu 注意这里不能用加号连接了,呵呵这就是&与+号的区别了,用&是可以连接不同的数据类型+号只能用于连接字符串.
c=a+"love"+b&shu
response.Write(c+"<br>")
cc=a&"love"&b&shu
response.Write(cc)
%>
</html>
ASP里的连接符&和+号区别
最新推荐文章于 2021-03-21 11:38:11 发布