Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/23.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
Javascript 仅在模糊上使用mwl确认指令_Javascript_Angularjs_Angularjs Directive - Fatal编程技术网

Javascript 仅在模糊上使用mwl确认指令

Javascript 仅在模糊上使用mwl确认指令,javascript,angularjs,angularjs-directive,Javascript,Angularjs,Angularjs Directive,除了onBlur,我的一切都在为这个工作。我所需要的是由ng更改触发mwl确认。我对angular有点陌生,非常感谢您的帮助。谢谢 似乎您必须使用 之后呢。 在处理模糊的函数内的按钮上执行cick触发器 $timeout(function() { angular.element(document.querySelector('#confirm_btn')).triggerHandler('click'); }, 100); 似乎您必须使用 之后呢。 在

除了onBlur,我的一切都在为这个工作。我所需要的是由ng更改触发mwl确认。我对angular有点陌生,非常感谢您的帮助。谢谢


似乎您必须使用 之后呢。 在处理模糊的函数内的按钮上执行cick触发器

 $timeout(function() {
            angular.element(document.querySelector('#confirm_btn')).triggerHandler('click');
        }, 100);

似乎您必须使用 之后呢。 在处理模糊的函数内的按钮上执行cick触发器

 $timeout(function() {
            angular.element(document.querySelector('#confirm_btn')).triggerHandler('click');
        }, 100);
 $timeout(function() {
            angular.element(document.querySelector('#confirm_btn')).triggerHandler('click');
        }, 100);