ASP里的连接符&和+号区别

    技术2022-05-11  78

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%><html><head><title>lovehui</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><%dim a,b,c,ccdim shushu=100a="小官"b="小会"'c=a+"love"+b+shu 注意这里不能用加号连接了,呵呵这就是&与+号的区别了,用&是可以连接不同的数据类型+号只能用于连接字符串.c=a+"love"+b&shuresponse.Write(c+"<br>")cc=a&"love"&b&shuresponse.Write(cc)%></html>


    最新回复(0)