3个回答
程序小哥哥 发表于 2020-5-13 17:07
提供demo,也看不出来怎么用吧,你是想要有个文档或者实例讲解吧?
展示js代码就可以。在一个容器内部,展示一个上传到资源管理器的svg格式的矢量图
我这边的js是这样写的。渲染不出来
```
var dom = jQuery("#HHH398")[0];
var node = document.createElement('div');
dom.appendChild(node);
//node.innerHTML = '<iframe src="vfs/root/products/ebi/sys/picture/sjtjfx/map.svg" width="300" height="100"></iframe>';
node.innerHTML = '<embed src="vfs/root/products/ebi/sys/picture/sjtjfx/map.svg" width="500" height="500" type="image/svg+xml" pluginspage="http://www.adobe.com/svg/viewer/install/" />';
//node.innerHTML = '<object data="circle1.svg" type="vfs/root/products/ebi/sys/picture/sjtjfx/map.svg"></object>';
```