angular.js - angularjs ng-model
大家讲道理
大家讲道理 2017-05-15 17:01:10
0
2
523

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

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

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
我想大声告诉你

ng-model is added to the form element, you can write directly like this <span>{{info.times}}</span>

给我你的怀抱

What about the code in the controller?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!