Geo*_*rge 14 web polymer polymer-1.0
什么是解释Polymer 1.0中双括号([[...]])和双括号({{...}})之间差异的简洁方法?
例如,在<iron-list>示例HTML 的元素文档中显示:
<template is="dom-bind">
<iron-ajax url="data.json" last-response="{{data}}" auto></iron-ajax>
<iron-list items="[[data]]" as="item">
<template>
<div>
Name: <span>[[item.name]]</span>
</div>
</template>
</iron-list>
</template>
Run Code Online (Sandbox Code Playgroud)
为什么data在一个点(last-response="{{data}}")中用双括号限制,但items="[[data]]"在另一个点用双括号()限制?