Window.onappinstalled
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
语法
window.onappinstalled = function(event) { ... };
示例
js
window.onappinstalled = function (ev) {
console.log("The application was installed.");
};
浏览器兼容性
BCD tables only load in the browser