如何獲取data-id屬性的值並將其作爲showData()函數的參數傳遞?如何使用錶行ID作爲angularjs函數的參數
<tr ng-repeat="schedule in schedules" ng-model="schedID" data-id="{{schedules.indexOf(schedule)}}">
<td>MON-THU</td>
<td>ACTIVITY CENTER</td>
<td>National Service Training Program 2 (MERGED)</td>
<td>0</td>
<td>
<input type="button" ng-click="showData()">
</td>
</tr>
可以顯示控制器代碼,請 – 2015-02-08 09:42:55