js实现主动使input失去焦点

主要解决在手机端,input输入完成,键盘还是弹出状态。

var input =document.getElementById("your-input-id");

input.blur();

你可能感兴趣的:(js实现主动使input失去焦点)