Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html “发送者”?_Html_Angularjs_Angularjs Directive - Fatal编程技术网

Html “发送者”?

Html “发送者”?,html,angularjs,angularjs-directive,Html,Angularjs,Angularjs Directive,新手问题 我的输入元素有一个ng blur指令集,可以很好地触发。它在$scope上调用的函数是泛型的。当我在$scope.MyBlur函数中时,如何知道哪个输入元素X是发送者 this关键字是函数中的$scope。您可以使用: <input ng-blur='blurFunc($event)'/> 然后在控制器中使用$event.target 标记是什么样子的?

新手问题

我的输入元素有一个ng blur指令集,可以很好地触发。它在$scope上调用的函数是泛型的。当我在$scope.MyBlur函数中时,如何知道哪个输入元素X是发送者

this关键字是函数中的$scope。

您可以使用:

<input ng-blur='blurFunc($event)'/>
然后在控制器中使用$event.target


标记是什么样子的?