V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
iugo
V2EX  ›  Polymer

About Polymer 2.0

  •  
  •   iugo · Nov 29, 2016 · 4836 views
    This topic created in 3435 days ago, the information mentioned may be changed or developed.
    https://www.polymer-project.org/2.0/docs/about_20

    之所以发布 2.0 版本主要基于以下两个标准:

    the new custom elements v1
    shadow DOM v1

    文档宣称这两项标准是正在被大多数浏览器厂家支持的. (正在是什么时候? 大多数包括国内厂家吗?)

    2.0 版本要给大家一个**平滑的过度升级**.

    还有以下几点提升:

    1. 提升互通性. 就是尽量可以与其他开源项目 /你之前的项目共同使用. (难道要兼容 jQuery 了?)
    2. 改进数据系统, 就像 Flux. (哈哈)
    3. 更多的标准化. 比如使用了 ES6 的 classes, 使用了(上面提到的) custom elements v1.

    在非 Chrome 浏览器中肯定还是有问题的, 目前还在开发中嘛. 而且, 如果你要尝试, 最好使用 Chrome Canary (喜欢尝鲜的开发者一般不使用稳定版吧).

    ---

    关于甩锅: However, since Apple has said it will not implement is, we will not be encouraging its use to avoid indefinite reliance on the custom elements polyfill.
    1 replies    2016-11-29 14:24:28 +08:00
    zhouquanbest
        1
    zhouquanbest  
       Nov 29, 2016
    现在 100%确定 Polymer 是个坑
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   867 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 22:03 · PVG 06:03 · LAX 15:03 · JFK 18:03
    ♥ Do have faith in what you're doing.