gpt4 book ai didi

polymer - Chrome 网络组件 : Polymer needed?

转载 作者:行者123 更新时间:2023-12-04 11:51:53 25 4
gpt4 key购买 nike

我知道 Chrome 在 Web 组件要求方面正在变得完整。

这是否意味着不再严格需要 polymer ?

最佳答案

需要明确的是,platform.js 层(polyfills)随着浏览器中的原生支持而消失,但polymer.js(Web 组件顶部的糖层)和元素不会。甜言蜜语是 Polymer 关于如何一起使用 web components++ 技术的意见,元素通常是有用/可重用的组件。

这篇文章描述了 polymer 的碎片:
What is the difference between Polymer elements and AngularJS directives?

今天,严格来说,您可以在不包含 platform.js polyfills 的情况下使用 polymer 。我们正在努力使这成为可能,因为现在有一种浏览器将支持 native Web 组件。我们还没有到那里,例如您仍然需要在 chrome 36 中包含 platform.js。

关于polymer - Chrome 网络组件 : Polymer needed?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24945811/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com