gpt4 book ai didi

JQuery Mobile 导致 Internet Explorer 窗口在加载时发送到后台

转载 作者:行者123 更新时间:2023-12-01 05:04:33 25 4
gpt4 key购买 nike

我遇到了这个错误:

https://github.com/jquery/jquery-mobile/issues/2057

但是,建议的解决方案对我不起作用,因为我在 iframe 中运行 JQM 代码。

在问题修复之前,您有什么解决方法的建议吗?延迟初始化 iframe 的源没有帮助 - 它只会延迟问题的发生。

最佳答案

发现有问题的代码:

// Kill the keyboard.
// XXX_jblas: We need to stop crawling the entire document to kill focus. Instead,
// we should be tracking focus with a live() handler so we already have
// the element in hand at this point.
// Wrap this in a try/catch block since IE9 throw "Unspecified error" if document.activeElement
// is undefined when we are in an IFrame.
try {
$( document.activeElement || "" ).add( "input:focus, textarea:focus, select:focus" ).blur();
} catch(e) {}

注释掉这三行可以解决问题。 JQM 团队已重新打开该错误并正在进一步调查。

关于JQuery Mobile 导致 Internet Explorer 窗口在加载时发送到后台,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6954026/

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