html2canvas(document.getElementById('resource_chart'),{ useCORS:true, logging:false, width:$('#resource_chart').width(),//設置canvas尺寸與所截圖尺寸相同,防止白邊 height:$('#resource_chart').height(),//防止白邊 }).then(function (canvas) {