日期:2014-05-17  浏览次数:20627 次

使用TDC遇到的超奇怪的问题,高手帮忙看看
fetch.htm文件
<html>
<title> </title>
<head>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=Shift_JIS ">
<script>
function   refresh()
{
try
{
ShozaiData.DataUrl= "test2 ";
ShozaiData.Reset();
alert(ShozaiData.recordset.recordCount);//和下面语句一样,但是结果不一样
alert(ShozaiData.recordset.recordCount);
}
catch(e)
{
alert(e.Message);
}
}
function   init()
{
ShozaiData.DataUrl= "test ";
ShozaiData.Reset();

}
</script>
</head>
<BODY   onload= "init ">
<OBJECT   ID=ShozaiData   CLASSID= "clsid:333C7BC4-460F-11D0-BC04-0080C7055A83 ">
<PARAM   NAME= "DataURL "   VALUE= "test ">
<PARAM   NAME= "UseHeader "   VALUE= "true ">
</OBJECT>
<CENTER>
<input   type= "button "   value= "change "   onclick= "refresh() "/>
<TABLE   ID= "table1 "   width=450   DATASRC= "#ShozaiData "   DATAPAGESIZE=20   STYLE= "font-size:9pt; ">
<THEAD>
<TR   STYLE= "background-color:navy;color:white; ">
<TD   ALIGN= "center "> cola </TD>
<TD   ALIGN= "center "> colb </TD>
</TR>
</THEAD>
<TBODY>
<TR   STYLE= "background-color:silver ">
<TD> <SPAN   DATAFLD= "cola "> </SPAN> </TD>
<TD> <SPAN   DATAFLD= "colb "> </SPAN> </TD>
</TR>
</TBODY>
</TABLE>
</CENTER>
</BODY>
</HTML>
test文件:
cola:STRING,colb:STRING
a1,a2
b1,b2
c1,c2
test2文件:
cola:STRING,colb:STRING
a,b
c,d
e,f
g,h

现在的问题是如果右键点击fetch.htm然后选择用IE打开,上面的两个alert结果相同,但是如果把这三个文件放在一个目录中,然后建立一个虚拟目录指到存放这三个文件的目录,使用localhost/xxx/fetch.htm访问页面,得到的两次alert的结果却不相同,百思不得其解。


------解决方案--------------------
遇到同样问题,顶起来。