ASP中如何调用js文件中的函数
default.asp:
=======================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<%
response.write "<script language=javascript src=""script/test.js""></script>" + vbcrlf
%>
</HEAD>
<BODY>
<%
response.write "<script>" + vbcrlf
response.write "var o = new obj();" + vbcrlf
response.write "document.write(o.test.name);" + vbcrlf
response.write "</script>" + vbcrlf
%>
</BODY>
</HTML>
===============================
test.js
===============================
function test(recall)
{
this.recall = recall;
this.name = "";
this.value = "";
this.Initialize = function(name, value)
{
this.name = name;
this.value = value;
}
}
function obj()
{
this.name = "this is manager!"
this.test = new test(this);
this.test.Initialize("123456", "This is a test only!");
}
================================
问题:
为什么在asp生成的页面中没有任何信息??
急急急急急,在线等