用vbscript也不行.但调用里面的getUserName方有输出值.<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
set oExport = CreateObject("TEST.DOWNLOAD")
if oExport is nothing then
msgbox "创建对象失败!"
else
msgbox oExport.getUserName("testttest") if (oExport.saveDwnFile(strUrl, strPathFileName)) then
msgbox "true"
else
msgbox "false"
end if
end if-->
</SCRIPT>
</head><body>
<OBJECT WIDTH="100" HEIGHT="100" CLASSID="CLSID:C3235789-14BA-4D0B-B291-2FED754F53D8">
</OBJECT>
</body>
</html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
set oExport = CreateObject("TEST.DOWNLOAD")
if oExport is nothing then
msgbox "创建对象失败!"
else
msgbox oExport.getUserName("testttest") if (oExport.saveDwnFile(strUrl, strPathFileName)) then
msgbox "true"
else
msgbox "false"
end if
end if-->
</SCRIPT>
</head><body>
<OBJECT WIDTH="100" HEIGHT="100" CLASSID="CLSID:C3235789-14BA-4D0B-B291-2FED754F53D8">
</OBJECT>
</body>
</html>
正确的是:yxm.saveDwnFile("http://localhost:7001/test/test.doc","e:\\test.doc");
结贴了.