document.getElementById('box').addEventListener('animationend', function() { alert(1) })主要是使用animatioend方法