代码运行在 iframe 中
window["navigator"]["keyboard"]["getLayoutMap"]()["then"](function(){}).catch(function(){ debugger; })
'getLayoutMap() must be called from a top-level browsing context or allowed by the permission policy.'
深度解读 · 专业分析
代码运行在 iframe 中
window["navigator"]["keyboard"]["getLayoutMap"]()["then"](function(){}).catch(function(){ debugger; })
'getLayoutMap() must be called from a top-level browsing context or allowed by the permission policy.'