WindowControlsOverlay:getTitlebarAreaRect() 方法
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
WindowControlsOverlay
接口的 getTitlebarAreaRect()
方法用于查询渐进式 Web 应用程序窗口标题栏区域的当前几何形状。
这仅适用于安装在桌面操作系统上并使用窗口空间叠加 API 的渐进式 Web 应用。