2,723
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
function ss_jc_jc(){
//开始先设置3个变量 用来装3个字段
var add1= document.getElementById("A1");
alert(add1.saygood());
}
</script>
</head>
<body>
<OBJECT ID="A1"
CLASSID="CLSID:CAD0531F-01FD-4420-8408-55A6D0E4FA08">
</OBJECT>
<input type="button" onclick="javascript :ss_jc_jc();" value="tttt"/>
</body>
</html>
<?php
header("Content-Type: text/html; charset=utf-8");
$aa= new COM("zkemvfp.zkem") or die("Unable to instanciate Word");
?>
Define Class testc As Session OLEPUBLIC
Procedure saygood
Parameters msg
Return msg
Endproc
Enddefine
查了一些资料 , 好像COM 组件开发中需要预定义很多 接口的, 像这样简单的 定义,也只有 VFP 能认出来了 不知道有哪些接口规范 可以参考