function showCargoPieInfo(id,numx,numy,namex,namey,title,method,methodid) { myChart.setOption(option); myChart.on('click', function() { window[method](methodid); }); }
method = "openPopWindow";
methodId = "cargoShipment_pie_window";
相当于
openPopWindow('cargoShipment_pie_window');