在polymer dart 1.0.rc中访问静态属性的不同方式有哪些
鉴于以下因素 飞奔 这将动态地导致 .html在polymer dart 1.0.rc中访问静态属性的不同方式有哪些,dart,dart-polymer,Dart,Dart Polymer,鉴于以下因素 飞奔 这将动态地导致 .html 在x-custom是子文件的另一个.html和.dart文件中,访问静态设置的hostAttributes有哪些不同的方法?如果您通过中介绍的方法之一获取元素的引用,则必须这样做 var xCustom = ...; print(xCustom.attributes['string-attribute']); xCustom.attributes['string-attribute'] = 'otherValue'; 或者说 <dom-
在x-custom是子文件的另一个.html和.dart文件中,访问静态设置的hostAttributes有哪些不同的方法?如果您通过中介绍的方法之一获取元素的引用,则必须这样做
var xCustom = ...;
print(xCustom.attributes['string-attribute']);
xCustom.attributes['string-attribute'] = 'otherValue';
或者说
<dom-module id="some-element">
<template>
<x-custom
string-attribute="{{someStringProperty}}">
</x-custom>
</template>
</dom-module>
(未经测试)您能再详细说明一下您的目标吗?
var xCustom = ...;
print(xCustom.attributes['string-attribute']);
xCustom.attributes['string-attribute'] = 'otherValue';
<dom-module id="some-element">
<template>
<x-custom
string-attribute="{{someStringProperty}}">
</x-custom>
</template>
</dom-module>