代码运行在 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.'