复制代码
需要在网页中引入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/基础/文字省略/index.jsonp.js" />