input获取永久焦点

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

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

posted @ 2016-05-19 15:10  MrZou  阅读(702)  评论(0编辑  收藏  举报