我正在使用 javascript 进行编码,我也在使用 knockout。我收到此消息:'Attr.ownerElement' 已弃用并已从 DOM4 中删除。我不明白这是什么意思。
最佳答案
好吧,这只是意味着您不应该在代码中使用属性的 ownerElement
属性。
在 MDN 中他们说:
ownerElement This property has been removed from Firefox 29. Since you can only get Attr objects from elements, you should already know the owner.
https://developer.mozilla.org/en-US/docs/Web/API/Attr
那么,您是否在代码中使用了 ownerElement
?也许您使用了一些库?
关于javascript - attr.ownerElement 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24214188/