asp计算的问题
<%dimx,a,PingJun,n,sx=Request.QueryString("x")a=Split(x,",")n=UBound(a)+1Fori=0ToUBou...
<%
dim x,a,PingJun,n,s
x=Request.QueryString("x")
a = Split(x, ",")
n = UBound(a) + 1
For i = 0 To UBound(a)
s = s + a(i)
Next
response.write s
%>
当x=1,2,3 的时候 输出的不是6 而是 123
怎么解决呢? 展开
dim x,a,PingJun,n,s
x=Request.QueryString("x")
a = Split(x, ",")
n = UBound(a) + 1
For i = 0 To UBound(a)
s = s + a(i)
Next
response.write s
%>
当x=1,2,3 的时候 输出的不是6 而是 123
怎么解决呢? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询