复制代码
需要在网页中引入html-viewer
的库。
- 引入
html-viewer
html
<script src="https://npm.elemecdn.com/@wenonly/html-viewer/lib/html-viewer.umd.js"></script>
- 使用
html-viewer
html
<html-viewer src="https://wenonly.github.io/kit//kit/viewer/examples/html/3D/魔方/index.jsonp.js" />