this.$nextTick(()=>{ 在这,使用this.$refs获取可以获取 });
原因是:vue添加完数据后还未加载组件,this.$nextTick是预先获取
博客园 © 2004-2026 浙公网安备 33010602011771号 浙ICP备2021040463号-3