echarts工具栏自定义按钮

feature : {
    myToolsNum:{  
       show: true,  
       textAlign:'right',                       
       text: '数量',
       icon:'image://radio.png', 
       onclick:function(o){
             alert('1');
       }    
    },
    myToolsPrice:{
        show:true,
        textAlign:'right',
        text:'价格',
        icon:'image://radio.png',
        onclick:function(o){
          alert('1');
        }
    }
} 

按钮的名字必须my开头,不然不会显示的

posted @ 2017-06-06 17:05  暗夜心慌方  阅读(6126)  评论(0)    收藏  举报