let input = document.getElementById('test'),
btn = document.querySelector('button');
btn.addEventListener('click', function(){
let int = document.createElement('input');
int.type = 'text';
document.body.appendChild(int);
// input.focus();
int.focus();
})
我这样是可以直接直接打开键盘的,只要放到引擎里面就打不开键盘了,你们这对Input做了啥啊,真坑啊