扫码关注官方订阅号
闭关修行中......
...你写个for。。开始渲染的时候就已经for的最后结果了。
controller('xx',function($scope,$interval){ function changeItem() { $interval(function () { $scope.item = !$scope.item; }, 1000) } changeItem() })
html
<p ng-hide="item"> You will see me if item is false. </p>
这样他就会反复渲染了,用普通的setInterval,无法激活渲染
双向绑定是通过在form控件中使用ngModel指令,
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
...你写个for。。开始渲染的时候就已经for的最后结果了。
html
这样他就会反复渲染了,用普通的setInterval,无法激活渲染
双向绑定是通过在form控件中使用ngModel指令,