动画结束事件

let ani= this.node.getComponent(cc.Animation);
ani.on(“finished”, () => {
// console.log(“play finished”);
if (this.cardAni)
this.node.active = false;
})
监听动画结束事件应该是这样写的,但是为什么没有效果,监听stop会有效果