您的位置:首页 > 理论基础 > 计算机网络

echarts自定义功能按钮图片 网络路径格式

2017-08-30 11:23 351 查看
toolbox : {
show : true,
orient : 'vertical',
x:'left',
top : '20%',
feature : {
myTool : {
show : true,
title : '自定义扩展方法',
icon : 'image://http://localhost:8080/test/skins/test.png',
onclick : function (){
alert(1);
}
},
dataView : {
show : true,
readOnly : false
}
}
},



需要在图片路径前加上 image:// 

注:具体原因我也不清楚,不知道是echarts特有的图片路径格式,还是一种特殊的路径。

        如果哪位大神知道,望指点一二,感谢。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐