问题描述
<p ng-if='info.times>0'>重新发送验证码(<span ng-model='info.times'>{{info.times}}</span>)</p>
为什么{{info.times}}数值一直是60不变呢,我打印的数值一直是减少的呀。(用console.log()打印了)
问题解答
回答1:ng-model是加在表单元素上的,可以直接这样写<span>{{info.times}}</span>
回答2:controller中的代码呢?
问题描述
<p ng-if='info.times>0'>重新发送验证码(<span ng-model='info.times'>{{info.times}}</span>)</p>
为什么{{info.times}}数值一直是60不变呢,我打印的数值一直是减少的呀。(用console.log()打印了)
问题解答
回答1:ng-model是加在表单元素上的,可以直接这样写<span>{{info.times}}</span>
回答2:controller中的代码呢?
相关文章:1. 为什么老师,你de button按钮处可以有两个ID是一样的id="loginbtn" 而不会报错啊2. solaris基础和常用知识 (2)3. 为什么总是提示我说Template "movieTemplate" not found,我路径都引对了呀4. <tr valign="top"> 看不懂5. mysql - sphinx查询 "中国" 时也能查询到 "中华人民共和国"6. MySQL"="自动 like7. javascript - 一个字符串转换成数字,例子就是a="2,322.222",b=’1,211.21’,如何在angualr中执行相减8. javascript - 关于input="file",重复选择同一文件时不触发change事件的问题9. mysql - 使用hibernate连接数据库时,数据库版本过高不支持关键字"type" ;10. 发现 <li><a href="/index.php">回到前台</a></li>这样回到首页后,不是登录状态
网公网安备:皖ICP备2020019022号-3 Copyright ¢ 2020-2025 Powered by V1.8 All Rights Reserved 技术支持:乐呵呵网
声明:本站所有资源以学习为主