gpt4 book ai didi

jquery - 对焦时,聚焦

转载 作者:行者123 更新时间:2023-12-03 22:18:18 28 4
gpt4 key购买 nike

jQuery 会阻止这种类型的行为吗?

$("input").focusout(function() {
$(this).focus();
});

最佳答案

这是如何完成的(跨浏览器工作):

$('input').blur(function() {
var that = this;
setTimeout(function() { $(that).focus(); }, 0);
});

现场演示: http://jsfiddle.net/jzt2Z/1/

关于jquery - 对焦时,聚焦,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6417762/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com