下面是ActiveX调用DLL的方法
<html> <head> <script language="javascript"> function showString(){ var showObj = new ActiveXObject("FirstProjectLib.HelloWord"); showObj.sayWords(); } </script> </head> <body onload="showString()"> </body> </html>
效果为:
下面是ActiveX调用DLL的方法
<html> <head> <script language="javascript"> function showString(){ var showObj = new ActiveXObject("FirstProjectLib.HelloWord"); showObj.sayWords(); } </script> </head> <body onload="showString()"> </body> </html>
效果为: