链式动画提问?

在实现同时运动时,采取json方式进行的链式动画,为什么在结束时调用函数时会显示无法获取未定义或null引用的属性"opacity",出现问题的代码就是如下:

(obj,attr) {
    }
在chrome浏览器报错信息是:
698StartSecond.html?_ijt=pk5mlvt3o03udkki2e1go36t83:57 Uncaught 
TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
魅友
浏览 1297回答 2
2回答

stone310

这个错误信息意思是你的getComputedStyle方法作用的对象无法执行,一般来说是你调用动画方法时,你的元素对象没写正确,必须要是元素节点

慕少1338687

不好意思!这个我也搞不清楚,所以..
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript