Small program loading method and related device

The invention discloses an applet loading method and a related device. The method comprises the following steps: obtaining an applet opening instruction; according to the applet opening instruction, whether a corresponding service.js file is stored in a preset relative path or not is inquired; if th...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LIAO LINGFENG, LIAO YAXUE, YANG HUABIAO
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses an applet loading method and a related device. The method comprises the following steps: obtaining an applet opening instruction; according to the applet opening instruction, whether a corresponding service.js file is stored in a preset relative path or not is inquired; if the first webView control has stored the service.js file, opening the service.js file through the first webView control, and injecting the service.js file into a Publish method and an Invoke method; after the service.js file is successfully opened, a JSCore.pubish module is called, so that the JSCore.pubish module sends out a corresponding first message, and when the service.js file is successfully opened, the first message is sent out by the JSCore.pubish module; and after the first message is received, loading the corresponding Page module so as to display an applet H5 page corresponding to the Page module. According to the method, the corresponding applet H5 page can be loaded and displayed based on the applet pla