聚合物,'Computed'性能在IE中不起作用



为什么在IE中不起作用?

https://www.polymer-project.org/docs/polymer/polymer.html#computed-properties

<link rel="import" href="http://www.polymer-project.org/components/polymer/polymer.html">

<polymer-element name="square-element" attributes="square">
<template>
    <input type="number" value="{{num}}"><br>
    <em>{{num}}^2 = {{square}}</em>
</template>
<script>
Polymer('square-element', {
    num: 2,
    computed: {
    square: 'num * num'
    }
});
</script>

我在IE10,IE11中测试过.....但铬很好

感谢您的帮助..

Webcomponents规范尚未包含在所有浏览器中。某些浏览器需要填充符号才能提供聚合物功能。填充物在这里:

https://github.com/webcomponents/webcomponentsjs

如果您想知道每个浏览器中实现了什么,请监视此页面:

http://jonrimmer.github.io/are-we-componentized-yet/

最新更新