clone的el只有插入文档才能获取transitioninfo吗
来源:10-13 transition-group(3)

center_one
2020-03-05
在hasmove中,对clone元素先插入后删除,clone的el只有插入文档才能获取transitioninfo吗
写回答
1回答
-
是的,必须要插入到 DOM 中,因为内部会调用 getComputedStyle 方法去计算获取样式然后对比。
10
相似问题
clone的el只有插入文档才能获取transitioninfo吗
来源:10-13 transition-group(3)
center_one
2020-03-05
在hasmove中,对clone元素先插入后删除,clone的el只有插入文档才能获取transitioninfo吗
1回答
是的,必须要插入到 DOM 中,因为内部会调用 getComputedStyle 方法去计算获取样式然后对比。
相似问题