Microsoft VBScript 运行时错误 错误 '800a0009' 下标越界: '[number: 1]' /inc/useragent.asp,行 3
MicrosoftVBScript运行时错误错误'800a0009'下标越界:'[number:1]'/inc/useragent.asp,行3以上是错误信息<%strs...
Microsoft VBScript 运行时错误 错误 '800a0009'
下标越界: '[number: 1]'
/inc/useragent.asp,行 3
以上是错误信息
<%
strsplit=split(Request.Servervariables("HTTP_USER_AGENT"),";")
strsplit(1)=replace(strsplit(1),"MSIE","Internet Explorer")
strsplit(2)=replace(strsplit(2),")","")
strsplit(2)=replace(strsplit(2),"NT 5.1","XP")
strsplit(2)=replace(strsplit(2),"NT 5.0","2000")
strsplit(1)=Trim(strsplit(1))
strsplit(2)=Trim(strsplit(2))
%>
以上是文件源码,请问我该如何改写? 展开
下标越界: '[number: 1]'
/inc/useragent.asp,行 3
以上是错误信息
<%
strsplit=split(Request.Servervariables("HTTP_USER_AGENT"),";")
strsplit(1)=replace(strsplit(1),"MSIE","Internet Explorer")
strsplit(2)=replace(strsplit(2),")","")
strsplit(2)=replace(strsplit(2),"NT 5.1","XP")
strsplit(2)=replace(strsplit(2),"NT 5.0","2000")
strsplit(1)=Trim(strsplit(1))
strsplit(2)=Trim(strsplit(2))
%>
以上是文件源码,请问我该如何改写? 展开
1个回答
展开全部
strsplit=split(Request.Servervariables("HTTP_USER_AGENT"),";")
strsplit1=replace(strsplit,"MSIE","Internet Explorer")
strsplit2=replace(strsplit,")","")
strsplit2=replace(strsplit2,"NT 5.1","XP")
strsplit2=replace(strsplit2,"NT 5.0","2000")
strsplit1=Trim(strsplit1)
strsplit2=Trim(strsplit2)
strsplit1=replace(strsplit,"MSIE","Internet Explorer")
strsplit2=replace(strsplit,")","")
strsplit2=replace(strsplit2,"NT 5.1","XP")
strsplit2=replace(strsplit2,"NT 5.0","2000")
strsplit1=Trim(strsplit1)
strsplit2=Trim(strsplit2)
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询