tec*_*gey 8 polymer polymer-1.0
什么是Polymer 1.0相当于injectBoundHTML()?
(即将HTML字符串附加到Polymer元素中的节点并解析数据绑定)
一个JSbin示例 - http://jsbin.com/jufase/edit?html,output
编辑:没有足够的SO信用来接受我自己的答案,但它应该低于某个地方.TL; DR - 使用"dom-bind"模板
Zik*_*kes 0
默认情况下绑定到属性,连字符可用于表示大写:
<element inner-h-t-m-l="{{prop}}"></element>
归档时间:
10 年,5 月 前
查看次数:
2022 次
最近记录:
9 年,3 月 前