我在本机用IIS作服务器,网页嵌入一个ACTIVEX控件,它有一个方getFile(),在IE中输入http://localhost/test.html时,以下代码能正常运行!
<script type="text/javascript">
window.onload=function()
{
var ECGViewOCX1=document.getElementById("ECGViewOCX1");
ECGViewOCX1.getFile("c:\\Program Files\\Common Files\\20090323113523.rar");
}
</script>
控件也能读到文件!
但当我在IE中输入:http://192.168.1.134/test.html时,方法就不能用啦????也就是说我把localhost改成本机IP后,控件方法就不能用啦???望大侠们给点思路???