本文介绍了在Firefox中启用自定义元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Firefox 31/32中启用自定义元素?根据有进行中的支持但是我看不到它,而且使用google搜索是没有帮助的。解决方案
经过一番实验,似乎使用firefox中正在进行的Web组件支持是在firefox中导航到 about:config
并启用 dom.webcomponents.enabled
标志。在Firefox 31中,似乎(至少)能够实现 document.registerElement
和各种自定义元素生命周期回调。
How can I enable Custom Elements in Firefox 31/32? According to Are We Componentized yet? there is "in progress support" but I can't see it, and googling was unhelpful.
解决方案
After some experimentation, it appears that the way to use the in-progress Web Components support in firefox is by navigating to about:config
in firefox and enabling the dom.webcomponents.enabled
flag. In Firefox 31 that seems to (at minimum) enable implementations of document.registerElement
and the various custom element lifecycle callbacks.
这篇关于在Firefox中启用自定义元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!