jQuery会阻止这种行为吗?
$("input").focusout(function() {
$(this).focus();
});
Run Code Online (Sandbox Code Playgroud)
Šim*_*das 12
这是它的完成方式(跨浏览器工作):
$('input').blur(function() {
var that = this;
setTimeout(function() { $(that).focus(); }, 0);
});
Run Code Online (Sandbox Code Playgroud)
现场演示: http ://jsfiddle.net/jzt2Z/1/
| 归档时间: |
|
| 查看次数: |
3296 次 |
| 最近记录: |