react-china上看到的问题,自己也好奇答案,所以转过来问问大神
移动端的页面,需要在进入首页时autofocus,然后弹出键盘。求指导
认证高级PHP讲师
It seems that for security reasons, js cannot generate click events. It can only monitor page click events and trigger click events of the input box
document.onclick=function(){ inputDom.click() }
Isn’t there a focus() function?
If you would like to comment or inquire about a question or other answers, please use the "Comment" function.
It seems that for security reasons, js cannot generate click events. It can only monitor page click events and trigger click events of the input box
Isn’t there a focus() function?
If you would like to comment or inquire about a question or other answers, please use the "Comment" function.