Window.onappinstalledWindow 对象的 onappinstalled 属性用于处理 appinstalled 事件,该事件是一个实现了 Event接口的简单事件,会在网页应用成功安装为渐进式网页应用时立即触发。语法window.onappinstalled = function(event) { ... }; 示例jswindow.onappinstalled = function (ev) { console.log("The application was installed."); }; 浏览器兼容性BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.相关文章 Event