A developer calls the terminate method in JavaScript code, which causes the Page Ability to be destroyed.
A HarmonyOS application may not contain a hap package of the feature type.
HAR (HarmonyOS Ability Resources) is different from HAP (HarmonyOS Ability Package) in that HAR cannot be installed and run on devices independently, and can only be referenced as dependencies of application modules.
JavaScript FA (Feature Ability) lifecycle events are divided into application lifecycle and page lifecycle.