Input autofocus attribute

后端 未结 10 1541
Happy的楠姐
Happy的楠姐 2020-11-30 04:47

I have places in my code where I have this:


I would like to be able to use it like

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 05:22

    scope.doFocus = function () {
                    $timeout(function () {
                            document.getElementById('you_input_id').focus();
                        });
                };
    

提交回复
热议问题