NG-重点和NG-模糊不工作时NG-点击输入元件正常工作 [英] ng-focus and ng-blur not working while ng-click works fine in input element
本文介绍了NG-重点和NG-模糊不工作时NG-点击输入元件正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<input ng-model="t" ng-change="updateV()" ng-blur="blur()" ng-focus="blur()" ng-click="blur()"/>
我做一个捣鼓这个问题: http://jsfiddle.net/tjfdfs/6Mqd6/
任何人都可以帮忙吗? THX!
anyone can help? thx!
推荐答案
两个 NG-焦
和 NG-模糊
指令不在当前稳定分支(1.0.x的)支持。相应的code已被添加到掌握短短2个月前。
Both ng-focus
and ng-blur
directives are not supported in the current stable branch (1.0.x). The corresponding code has been added to master just 2 months ago.
希望有他们在1.2.0分支。其实,如果你能与标记为您的应用程序不稳定的产品工作,尽量1.2.0rc1让他们的支持了。
Expect to have them in 1.2.0 branch. Actually, if you're able to work with the products marked as unstable in your application, try 1.2.0rc1 to have them supported already.
这篇关于NG-重点和NG-模糊不工作时NG-点击输入元件正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文