Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前有一个托管 OCX 控件的基于 Web 的应用程序。如果可能的话,我希望能够以编程方式添加此控件,从而允许我插入新的 OCX 控件而无需修改 HTML 中的 OBJECt 标记。
如果找不到,我还需要能够保持将 OCX 控件下载到客户端的能力。
这可能吗?
您可以<object>通过直接操作 DOM 在运行时为控件创建标签。如果用户没有 .ocx,这也可以让您将其下载给用户,就像任何普通<object>标签一样。
<object>