Method for running applets, and electronic device
The embodiment of the present disclosure provides a method and an apparatus for running applets, an electronic device and a storage medium. The method includes obtaining uniform resource identifier (URI) information of the applet based on an opening request when the opening request of the applet is...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the present disclosure provides a method and an apparatus for running applets, an electronic device and a storage medium. The method includes obtaining uniform resource identifier (URI) information of the applet based on an opening request when the opening request of the applet is received, wherein a format of the URI comprises a protocol name of a target boot protocol and content corresponding to the protocol, and the target boot protocol is a universal boot protocol applied to a plurality of host applications when opening the applet; analyzing the URI information based on grammatical format description rules of the target boot protocol, to obtain a first parameter and a second parameter; obtaining an execution file package of the applet based on the first parameter; and rendering corresponding page resources in the execution file package based on the second parameter. Therefore, the opening of the applet across clients and servers may be unified with the pre-defined target boot protocol, which provides an important prerequisite for the multi-terminal operation of the applet and ensures that the applet has multi-terminal operation capabilities. |
---|