【发布时间】:2017-01-30 22:37:47
【问题描述】:
我需要一个帮助。我需要使用 Angular.js 从表格行中获取所有检查的数据。我在下面解释我的代码。
<tr ng-repeat="gl in galleryDatas">
<td><input type="checkbox" name=""> {{$index+1}}</td>
<td><img ng-src="upload/{{gl.image}}" border="0" name="image" style="width:100px; height:100px;" /></td>
<td>{{gl.description}}</td>
</tr>
这里我需要当用户单击复选框时,相应的行数据将检索到一个数组中。请帮助我。
【问题讨论】:
-
值得一看,小提琴似乎是您想要实现的目标:http://stackoverflow.com/a/14835160/4045532
标签: javascript angularjs