angularjs 視圖渲染完成事件
1 回答

森欄
TA貢獻1810條經驗 獲得超5個贊
在你的ng-repeat的元素上寫ng-init="checkLast($last)"
$scope.checkLast = function($last){
if($last){
console.log('渲染結束');
}
}
當然你也能自己封裝個 repeat-finish 的directive來做
- 1 回答
- 0 關注
- 1084 瀏覽
添加回答
舉報
0/150
提交
取消