sct 1:
<package>
<component>
<runtime>
<example>
var o=new ActiveXObject("asfman.best");
alert(o.factorial(12))
</example>
</runtime>
<registration
description="factorial function"
classid="{12345678-aabb-ccdd-eeff-012345678901}"
progid="asfman.best">
</registration>
<public>
<method name="f" internalName="factorial" dispid="0" />
</public>
<script language="Jscript">
function factorial(n)
{
return n>1?n*arguments.callee(n-1):1;
}
</script>
<implements type="ASP" />
</component>
</package>
sct2:
<package>
<component>
<registration
description="test2 object"
classid="{12345678-aabb-ccdd-eeff-112345678901}"
progid="asfman.best2">
</registration>
<object id="test" progid="asfman.best" />
<public>
<method name="a" internalName="a" dispid="0" />
</public>
<script language="Jscript">
function a(n)
{
return test.f(n);
}
</script>
<implements type="ASP" />
</component>
</package>
posted on 2007-08-05 09:07
汪杰 阅读(254)
评论(0) 编辑 收藏 引用 所属分类:
javascript