javascript引用asp变量失败,不知道原因
autoid = session("autoid")response.Write "<script lanuage='javascript'>alert('There is the same S/N exist.Please check S/N again.');location='http://hzmot/quick/Equipment/Leased/dealmodify.asp?autoid='+autoid+''</script>"
。。。
response.Write "<script lanuage='javascript'>alert('There is the same S/N exist.Please check S/N again.');location='http://hzmot/quick/Equipment/Leased/dealmodify.asp?autoid='+autoid+''</script>"你把‘+autoid+'改成<%=autoid%>试试看行不,注意标点符号! 不行,改成<%autoid%>提示语句为结束 不行,改成<% =autoid %>提示未结束的字符串常量 未结束的字符串常量
response.Write "<script lanuage='javascript'>alert('There is the same S/N exist.Please check S/N again.');location='http://hzmot/quick/Equipment/Leased/dealmodify.asp?autoid=<%=autoid%>'</script>" response.Write "<script lanuage='javascript'>alert('There is the same S/N exist.Please check S/N again.');location='http://hzmot/quick/Equipment/Leased/dealmodify.asp?autoid=[color=red]"&[/color]autoid[color=red]&"[/color]'</script>" ""啊 已经解决了.非常感谢各位.
页:
[1]
