0
在高級圖表中使用不在IE中工作的離線導出。我想只在Internet Explorer中刪除導出按鈕。單獨在Internet Explorer中刪除導出按鈕
在高級圖表中使用不在IE中工作的離線導出。我想只在Internet Explorer中刪除導出按鈕。單獨在Internet Explorer中刪除導出按鈕
可以說你已經創建了你的圖表;
var chart = Highcharts.chart('container', { ............ });
現在你有一個chart
對象,其可以根據IE檢測結果以後更新。
if (navigator.appName == 'Microsoft Internet Explorer' || !!(navigator.userAgent.match(/Trident/) || navigator.userAgent.match(/rv:11/)) || (typeof $.browser !== "undefined" && $.browser.msie == 1))
{
chart.update({
exporting: {
enabled: false
}
});
}
活生生的例子:當我加入這個腳本jsFiddle
工作正常。 –