<div id="chart"></div>
document.getElementById('chart').innerHTML = "";
$('#chart').html("");
清空div内容 两种都可以