var zhe = echarts.init(document.getElementById('area6'), 'base'); //base爲主題的js名稱
zhe.showLoading({
text : '加載中...', //加載時候的文本
color:'green', //加載時候小圓圈的顏色
textColor:'white', //加載時候文本顏色
maskColor:'#082042' //加載時候的背景顏色
});
$.ajax({
url : XXX,
data : XXX,
type : XXX,
contentType : XXX,
dataType : XXX,
success : function(data) {
zhe.hideLoading(); //關閉加載
...............
}