Aframe A帧动画组件未删除

Aframe A帧动画组件未删除,aframe,Aframe,我尝试了几种方法来删除动画(从html属性本身): $(“#id”).removeAttr(“动画”0)//导致以下错误: 我还尝试在删除组件等后刷新TODOM()。。。似乎没有更改任何html 代码笔:看看你的笔叉: 我替换了圆柱体。组件[“动画缩放”]。移除()带有圆柱体。删除属性(“动画比例”)

我尝试了几种方法来删除动画(从html属性本身):

$(“#id”).removeAttr(“动画”0)//导致以下错误:

我还尝试在删除组件等后刷新TODOM()。。。似乎没有更改任何html


代码笔:

看看你的笔叉:

我替换了
圆柱体。组件[“动画缩放”]。移除()带有
圆柱体。删除属性(“动画比例”)

另外,第一个
console.log()
必须位于
setTimeout()
方法之外,否则您只能同时调用这两个方法。

看看您的这支笔:

我替换了
圆柱体。组件[“动画缩放”]。移除()带有
圆柱体。删除属性(“动画比例”)

另外,第一个
console.log()
必须在
setTimeout()
方法之外,否则您只能同时调用它们。

遗憾的是,正如问题中所述,flushToDOM不起作用。我将发布更多代码。看来Jquery版本是导致错误的一个问题。但很高兴能提醒您使用非Jquery方法,因为在框架中更新Jquery似乎并不容易,谢谢。没问题。很高兴能帮上忙。遗憾的是,正如问题中所述,flushToDOM不起作用。我将发布更多代码。看来Jquery版本是导致错误的一个问题。但很高兴能提醒您使用非Jquery方法,因为在框架中更新Jquery似乎并不容易,谢谢。没问题。很乐意帮忙。
element.components["animation__0"].remove(); 
//above works, but has no affect on html list, just "stops" animation.  

delete element.components.animation__0;
//works, in theory but html attribute still there
aframe-animation-component.js:468 Uncaught TypeError: Cannot read property '2' of null(…)
getUnit @   aframe-animation-component.js:468
getValidValue   @   aframe-animation-component.js:523
getTweenValues  @   aframe-animation-component.js:584
(anonymous function)    @   aframe-animation-component.js:601
(anonymous function)    @   aframe-animation-component.js:594
getTweensProps  @   aframe-animation-component.js:592
getTweens   @   aframe-animation-component.js:614
createAnimation @   aframe-animation-component.js:755
animation   @   aframe-animation-component.js:784
update  @   aframe-animation-component.js:128
updateProperties    @   component.js:211
value   @   a-entity.js:446
value   @   a-entity.js:607
attr    @   jquery.js?hash=22a0055…:8028
removeAttr  @   jquery.js?hash=22a0055…:8068
(anonymous function)    @   jquery.js?hash=22a0055…:7991
each    @   jquery.js?hash=22a0055…:442
each    @   jquery.js?hash=22a0055…:194
removeAttr  @   jquery.js?hash=22a0055…:7990
(anonymous function)    @   VM8102:1