我做了COM组件名叫AAAA.BBBB.1
调用代码如下:
<html xmlns="http://www.w3.org/1999/xhtml" >
<body>
<a onclick="javascript:Run()" >运行</a>
</body>
<script type="text/javascript">
function Run()
{
alert("Begin");
clObject = CreateObject("AAAA.BBBB.1");
alert("Create");
clObject.RunFunction();
alert("End");
}
</script>
</html>
点击时,执行了alert("Begin")没执行alert("Create"),
到底是哪儿搞错了呢?
调用代码如下:
<html xmlns="http://www.w3.org/1999/xhtml" >
<body>
<a onclick="javascript:Run()" >运行</a>
</body>
<script type="text/javascript">
function Run()
{
alert("Begin");
clObject = CreateObject("AAAA.BBBB.1");
alert("Create");
clObject.RunFunction();
alert("End");
}
</script>
</html>
点击时,执行了alert("Begin")没执行alert("Create"),
到底是哪儿搞错了呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货