首页 > angularjs ng-model

angularjs ng-model

<div ng-if="info.times>0">重新发送验证码(<span ng-model="info.times">{{info.times}}</span>)</div>

为什么{{info.times}}数值一直是60不变呢,我打印的数值一直是减少的呀。(用console.log()打印了)


ng-model是加在表单元素上的,可以直接这样写<span>{{info.times}}</span>


controller中的代码呢?

【热门文章】
【热门文章】