示例:
input#InP(change )=' foo=InP.value ' listenestothechangeeventandcallsonchange ) andpassestheinputsvalueproperty
接收change事件,并将. value附加到#后面的名称以获取DOM元素的输入值。
请看以下示例:
h1rxdst/h1input#InP(change )='foo=InP.value ) div ) {foo}/divcomponent中的定义:
最终效果:
更多rxdst原创文章,《汪子熙》: