JS 调用问题

来源:百度知道 编辑:UC知道 时间:2024/05/18 04:44:17
<script src="http://www.xxxx.com/MessageBoard/index.asp?Action=msg&ID=10000" type="text/javascript"></script>
问下我远程调用如上
我直接打开上面文件是能 执行 的

但调用用就不执行 了

JS 不是很懂
求教 index.asp 代码如下:

<%
Action = Request.QueryString("Action")
If Action = "msg" Then
ID = Request.QueryString("ID")
Response.Write ID
Response.End()
End If
%>

你index.asp写的有问题.

按照下面的格式覆盖看看

<%
Action = Request.QueryString("Action")
If Action = "msg" Then
ID = Request.QueryString("ID")
Response.Write "docment.write(" & ID & ")"
Response.End()
End If
%>