2
我是angularJS的新手,尝试获取代码 - http://jsfiddle.net/atXAC/11/升级到1.4.9。将angularjs代码从1.0.3升级到1.4.9
myApp.directive('ngCustomblur', ['$parse', function($parse) {
return function(scope, element, attr) {
var fn = $parse(attr['ngCustomblur']);
element.bind('blur', function(event) {
scope.$apply(function() {
fn(scope, {$event:event});
});
});
}
}]);
请让我知道需要做些什么改变。 目前代码在1.0.3。
在此先感谢。
究竟是什么问题吗? – dreamweiver
我正在使用角1.4.9,无法让代码工作。小提琴中的代码是用1.0.3编写的 – user56690
您在控制台中遇到什么错误? –