input获取永久焦点

$(function () { $('#test').blur(function () { var that = this; //或者用闭包 setTimeout(function () { $(that).focus(); },100); }); });

$('#test').blur(function() {$(this).focus();});

原文地址:https://www.cnblogs.com/MrZouJian/p/5508761.html