aurelia - Aurelia:使用索引值来增加输入绑定中的数组值
问题描述
我正在尝试在 value.bind 指令中增加一个数组值,以便在此示例中创建三行,增加数组编号:
<tr repeat.for="i of 3">
<td><input type="text" value.bind="GS.qData.estate[**${$index}**].name"></td>
**strong text**</tr>
我尝试了几种排列方式({$i} 等),但似乎没有任何效果。
解决方案
进一步的研究似乎表明中继器不会这样做,所以我有其他解决方案。谢谢回复。
推荐阅读
- python - 与地图共享子图之间的 x 和 y 轴
- java - 如何在 JAVA 线程之间共享变量?
- javascript - 如何在javascript中获取childtag属性的出现次数
- python - python gTTS RuntimeError:无法获取语言列表:“NoneType”对象不可下标
- javascript - 在 mousemove 上为 Javascript 中的元素设置动画
- sql - 这两个条件是否等效(在 sql 中)?
- google-apps-script - 为什么 GmailDraft.send() 会使草稿的 gmail 标签消失?
- java - 选择器不适用于单击按钮效果
- python - 从两个元组python3创建单个元组
- binary-search-tree - 二叉搜索树 - Javascript - 两个节点之间的距离