WO2019149207A1 - Display method, device, storage medium and electronic equipment for application page - Google Patents

Display method, device, storage medium and electronic equipment for application page Download PDF

Info

Publication number
WO2019149207A1
WO2019149207A1 PCT/CN2019/073824 CN2019073824W WO2019149207A1 WO 2019149207 A1 WO2019149207 A1 WO 2019149207A1 CN 2019073824 W CN2019073824 W CN 2019073824W WO 2019149207 A1 WO2019149207 A1 WO 2019149207A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
identifier
sub
profile
application
Prior art date
Application number
PCT/CN2019/073824
Other languages
French (fr)
Chinese (zh)
Inventor
姚文定
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019149207A1 publication Critical patent/WO2019149207A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Definitions

  • the present application relates to the field of electronic device technologies, and in particular, to a method, an apparatus, a storage medium, and an electronic device for displaying an application page.
  • each application becomes more and more powerful, the storage space occupied by each application is also larger and larger, which may affect the normal operation of the smartphone system. In order to solve this problem, it can be set by currently in the browser.
  • the specified entry of the application when detecting the trigger operation of the specified entry by the user, the smart phone can retrieve the configuration file of the application through the network, and load and run the configuration file based on the script file on the smart phone to realize the display of the application page.
  • all of the application's configuration files must be loaded, wasting network traffic, and increasing the display time of the application page.
  • the embodiment of the present application provides a display method, an apparatus, a storage medium, and an electronic device of an application page, which can improve display efficiency of an application page.
  • a display method of an application page is provided in an electronic device, which includes:
  • Parsing the first sub-profile by the script file generating a native page corresponding to the target display page, and displaying the native page.
  • the embodiment of the present application provides a display device for an application page, including:
  • a first acquiring unit configured to acquire an application identifier and a page identifier of the target display page when the display instruction of the application page is detected
  • a first transceiver unit configured to send the application identifier and the page identifier to a configuration server, and receive a first sub-profile that is returned by the configuration server according to the application identifier and the page identifier, the first sub-profile
  • a configuration file is used to display the target display page
  • a loading unit configured to cache the first sub-profile, load and run a script file in an operating system
  • a generating unit configured to parse the first sub-profile by using the script file, generate a native page corresponding to the target display page, and display the native page.
  • the storage medium provided by the embodiment of the present application has a computer program stored thereon, and when the computer program is run on a computer, the computer is configured to execute the display method of the application page provided by any embodiment of the present application. .
  • an electronic device provided by an embodiment of the present application includes a processor and a memory, where the memory has a computer program, and the processor is configured to perform the steps by calling the computer program:
  • Parsing the first sub-profile by the script file generating a native page corresponding to the target display page, and displaying the native page.
  • FIG. 1 is a schematic diagram of an implementation environment of a display method of an application page according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a scenario of a method for displaying an application page according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a method for displaying an application page according to an embodiment of the present application.
  • FIG. 4 is another schematic flowchart of a method for displaying an application page according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a display device of an application page according to an embodiment of the present application.
  • FIG. 6 is another schematic structural diagram of a display device of an application page according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the embodiment of the present application provides a display method of an application page
  • the execution body of the display method of the application page may be a display device of an application page provided by the embodiment of the present application, or an electronic device integrated with the display device of the application page, where The display device of the application page can be implemented by hardware or software.
  • the electronic device may be a device such as a smart phone, a tablet computer, a palmtop computer, a notebook computer, or a desktop computer.
  • FIG. 1 is a schematic diagram of an implementation environment of a method for displaying an application page according to an embodiment of the present application.
  • the implementation environment includes a smart phone 10 , a communication network 20 , and a server 30 .
  • the operating system of the smartphone 10 can be an Android system, a Symbian system, an Apple system, or the like.
  • the smartphone 10 and the server 30 are connected by a communication network 20.
  • the communication network 20 includes a wireless network and a wired network.
  • the wireless network includes a combination of one or more of a wireless wide area network, a wireless local area network, a wireless metropolitan area network, and a wireless personal network.
  • the server 30 stores a plurality of sub-profiles of the application.
  • the application may divide the configuration file into multiple sub-profiles, and each sub-profile corresponds to a native page of the application, such as the sub-profile 1 of Page1.
  • Each sub-profile contains global configuration information corresponding to each native page of the application, and the global configuration information indicates which frame elements the native page is composed of, such as configuring the background color of the application page, configuring the navigation bar style, configuring the default title, and the like.
  • the smart phone 10 can obtain the sub-profile of the application from the server 30, and generate and display the native page corresponding to the application according to the sub-profile.
  • the native page can also be referred to as a “small program”, so that Under the premise of installing the application, the running of the application is realized, and the data required for the application running can be obtained from the server 30 immediately.
  • the server 30 can also perform an update operation on the application's sub-profile to provide the smartphone 10 with the updated sub-profile.
  • the server 30 may also store an installation file of the application, and the smart phone 10 may also obtain an installation file of the application from the server 30, and completely run the application by installing the installation file. It is easily conceivable that the server 30 can also update the installation files of the application to provide the updated installation files for the smartphone 10.
  • the embodiment of the invention provides a display method of an application page, including:
  • the first sub-profile is parsed by the script file, the native page corresponding to the target display page is generated, and the native page is displayed.
  • the step of parsing the first sub-profile by the script file, generating a native page corresponding to the target display page, and displaying the native page may further include: obtaining a link corresponding to the target display page The page identifier of the page;
  • the first sub-profile includes global configuration information describing the target display page, where the global configuration information includes a frame element of the target display page, and the first sub-profile is parsed by the script file to generate a target.
  • the step of displaying the native page corresponding to the page and displaying the native page may include: parsing the global configuration information by using the script file, generating a native page corresponding to the target display page according to the frame element, and displaying the native page. .
  • the method before the step of acquiring the application identifier and the page identifier of the target display page, the method further includes: marking the native page of the application, so that each native page includes a page identifier; establishing the page identifier and the child identifier An association table of configuration file identifiers, the association table indicating that each page identifier corresponds to an associated sub-profile identifier.
  • the step of sending the application identifier and the page identifier to the configuration server, and receiving the first sub-profile returned by the configuration server according to the application identifier and the page identifier may include: determining, based on the application identifier And the page identifier matches the association table, and the application identifier and the sub-profile identifier corresponding to the page identifier are obtained;
  • the method further includes: detecting whether the native page is closed. Operation instruction
  • the first sub-profile that is cached is deleted when it is detected that an operation instruction to close the native page is received.
  • the step of caching the first sub-profile, loading and running the script file in the operating system may include: presetting a corresponding cache space of the first sub-profile in the storage space;
  • the first sub-configuration is cached in the cache space, and the script file in the operating system is loaded and run.
  • FIG. 3 is a schematic flowchart of a method for displaying an application page according to an embodiment of the present application.
  • the specific process of the display method of the application page provided by the embodiment of the present application may be as follows:
  • the display instruction mentioned in the embodiment of the present application is generated by a specified entry that the user triggers the application display.
  • the user is using a browser browsing page, and the browsing page has a designated entry for triggering other application pages.
  • a corresponding display instruction of the application page is generated, and the display instruction includes an application identifier that needs to switch the application and a target display page that needs to be displayed.
  • Each display page of the application corresponds to a unique page identifier.
  • the application identifier indicated by the display instruction and the page identifier of the target display page are acquired.
  • the application identifier may be an application name or a version number of the application
  • the target display page may be a display page selected by the user according to the need, or may be a default home page display page.
  • the configuration server stores multiple sub-configuration files corresponding to each application, and records the correspondence between each sub-configuration file and the page identifier of each application page of the application, and each page identifier is unique.
  • a sub-profile that is used to display the corresponding application page.
  • the sub-profile includes data and running logic and global configuration information required to run the application page, and the global configuration information indicates which frame elements the application page is composed of, for example, configuring the background color of the application page, and configuring the navigation bar. Style, configure default title, and more.
  • the electronic device sends the application identifier and the page identifier to the configuration server, and the configuration server determines, according to the application identifier, the plurality of sub-profiles corresponding to the application, and then determines the sub-profile corresponding to the target display page of the plurality of sub-profiles by using the page identifier, and Return the determined subprofile to the terminal.
  • the configuration server may further save an installation file of the application, where the installation file is used to install the corresponding application.
  • sub-profile and the installation file are uploaded to the configuration server by a third-party vendor or developer, and the third-party vendor and developer can also update and delete the sub-profile and installation files in the configuration server. operating.
  • the electronic device may preset a buffer space of the sub-profile in the storage space.
  • the electronic device receives the sub-configuration file returned by the configuration server, the sub-configuration file is cached in the cache space. So that subsequent electronic devices can call this sub-profile to run at any time.
  • the script file in the operating system is loaded and run, and the script file mentioned in this embodiment may be a JavaScript script language file, that is, loaded and run embedded in the operating system.
  • the JavaScript scripting language file may be a JavaScript script language file, that is, loaded and run embedded in the operating system.
  • the global configuration information in the sub-profile is parsed by the loaded and running JavaScript script language file, and the parsed display element is converted into a native-based view, and the native view is dynamically rendered, thereby obtaining the target display page correspondingly.
  • the embodiment of the present application obtains the application identifier and the page identifier of the target display page when the display instruction of the application page is detected; sends the application identifier and the page identifier to the configuration server, and receives the configuration server according to the application identifier and the page identifier.
  • the first sub-profile returned, the first sub-profile is used to display the target display page; the first sub-profile is cached, the script file in the operating system is loaded and run, and the first sub-profile is parsed through the script file to generate a target display.
  • the page corresponds to the native page and displays the native page. In this way, if the application is not installed, the sub-configuration file required for the targeted acquisition can quickly display the application page, thereby improving the display efficiency of the application page.
  • the native page of the application can be quickly opened without the application being installed, the user can perform an initial experience on the application, and whether to install the application based on the initial experience can also improve the diversity of the user selection. .
  • the display method of the application page may include:
  • the application page is composed of multiple native pages, and multiple native pages correspond to one total configuration file.
  • the existing application page display method is to obtain the total configuration file from the network when the display instruction of the application page is detected. And display the app page by loading the total profile. Since the storage space of the total configuration file is generally large, the loading time is relatively small, and there may be a problem that the application page displays a jam.
  • the embodiment of the present application marks each of the original pages of the application separately, so that each of the native pages includes a unique page identifier, and the target display page that needs to be displayed can be determined by the page identifier.
  • each native page of the open application may only need a part of the sub-profiles in the total configuration file, if only the partial sub-configuration file corresponding to the cache is downloaded in the case of confirming the page identifier, the application page display may be significantly reduced. time.
  • the developer may establish an association table of the page identifier and the sub-profile identifier of each application in advance, and each page identifier corresponds to a different sub-profile identifier.
  • the application page can be divided into Page1, Page2, Page3, Home, etc., and each page corresponds to a different sub-profile, such as Page1 corresponding sub-profile Page1.rpk, Page2 corresponding sub-profile Page2. Rpk, etc., and so on, can establish an association table for each page identifier and each sub-profile identifier. Based on the association table, the sub-profile identifier corresponding to the page identifier can be quickly detected.
  • the corresponding association table is determined by the application identifier, and the application identifier may be an application name or an application version number.
  • the association table is matched based on the page identifier, and the corresponding sub-profile identifier is obtained. Based on the sub-profile identifier, the corresponding sub-profile can be quickly obtained.
  • the sub-profile includes global configuration information describing the native page
  • the global configuration information includes a frame element of the native page
  • the frame element may be a window background color of the native page, a navigation bar style, a title style, and the like.
  • the electronic device sends the application identifier and the sub-profile identifier to the configuration server, and the configuration server can quickly determine the plurality of sub-profiles corresponding to the application according to the application identifier and the sub-profile identifier, and return the determined first sub-profile to the On the terminal.
  • the mobile phone identifies the application as "XX gourmet application” and the sub-profile identification "Page1.rpk” to the configuration server, and the configuration server identifies the "XX gourmet application” and the sub-profile identification "Page1” according to the application identifier. .rpk” quickly determines the corresponding first sub-profile Page1.rpk and returns the sub-profile Page1.rpk to the phone.
  • the configuration server may further save an installation file of the application, where the installation file is used to install the corresponding application.
  • sub-profile and the installation file are uploaded to the configuration server by a third-party vendor or developer, and the third-party vendor and developer can also update and delete the sub-profile and installation files in the configuration server. operating.
  • the electronic device may preset a buffer space of the sub-profile in the storage space.
  • the electronic device receives the sub-configuration file returned by the configuration server, the sub-configuration file is cached in the cache space. So that subsequent electronic devices can call this sub-profile to run at any time.
  • the script file in the operating system is loaded and run, and the script file mentioned in this embodiment may be a JavaScript script language file, that is, loaded and run embedded in the operating system.
  • the JavaScript scripting language file may be a JavaScript script language file, that is, loaded and run embedded in the operating system.
  • the global configuration information in the sub-profile is parsed by the loaded and running JavaScript script language file, and the parsed display element is converted into a native-based view, and the native view is dynamically rendered, thereby obtaining the target display page correspondingly.
  • the method further includes:
  • each native page can contain multiple hyperlink texts, and when the user clicks on the hyperlink text, it will jump to the link corresponding to the original page.
  • the page identifier of the linked page corresponding to the current native page may be automatically obtained for preloading.
  • the page identifier of the link page is determined, the page identifier is sent to the configuration server, and the configuration server obtains the corresponding second sub-profile according to the page identifier, and returns the second sub-profile to the electronic device.
  • the electronic device After receiving the second sub-profile, the electronic device caches the second sub-profile in the cache space, so that when the user clicks on the hyperlink text, the second sub-profile can be directly invoked. Achieve the effect of quickly switching native pages.
  • step 308 is performed; when it is not detected that the operation instruction for closing the native page is received, the process returns to step 306 to display the native page.
  • the script file for running the sub-configuration file is closed. At this time, if the cached sub-configuration file is continuously stored in the cache space, the storage space of the electronic device is caused. Waste.
  • the cached sub-profile is deleted, thereby saving the storage space of the electronic device.
  • the embodiment of the present application obtains the application identifier and the page identifier of the target display page when the display instruction of the application page is detected; sends the application identifier and the page identifier to the configuration server, and receives the configuration server according to the application identifier and the page identifier.
  • the first sub-profile returned, the first sub-profile is used to display the target display page; the first sub-profile is cached, the script file in the operating system is loaded and run, and the first sub-profile is parsed through the script file to generate a target display.
  • the page corresponds to the native page and displays the native page. In this way, if the application is not installed, the sub-configuration file required for the targeted acquisition can quickly display the application page, thereby improving the display efficiency of the application page.
  • the native page of the application can be quickly opened without the application being installed, the user can perform an initial experience on the application, and whether to install the application based on the initial experience can also improve the diversity of the user selection. .
  • An embodiment of the present invention provides a display device for an application page, including:
  • a first acquiring unit configured to acquire an application identifier and a page identifier of the target display page when the display instruction of the application page is detected
  • a first transceiver unit configured to send the application identifier and the page identifier to the configuration server, and receive a first sub-profile file returned by the configuration server according to the application identifier and the page identifier, where the first sub-profile is used to display the Target display page;
  • a loading unit for caching the first sub-profile, loading and running a script file in the operating system
  • a generating unit configured to parse the first sub-profile by using the script file, generate a native page corresponding to the target display page, and display the native page.
  • the device further includes: a second obtaining unit, configured to acquire a page identifier of the linked page corresponding to the target display page;
  • a second transceiver unit configured to send the page identifier of the link page to the configuration server, and receive a second sub-profile file returned by the configuration server according to the page identifier of the link page;
  • a cache unit for caching the second sub-profile.
  • the apparatus further includes: a marking unit, configured to mark the native page of the application such that each native page includes a page identifier;
  • the establishing unit is configured to establish an association table between the page identifier and the sub-profile identifier, where the association table indicates that each page identifier corresponds to the associated sub-profile identifier.
  • the first transceiver unit may include: a matching subunit, configured to match the association table based on the application identifier and the page identifier, to obtain the application identifier and the sub-profile identifier corresponding to the page identifier. ;
  • the transceiver subunit is configured to send the application identifier and the sub-profile identifier to the configuration server, and receive the first sub-configuration file returned by the configuration server according to the application identifier and the sub-profile identifier.
  • the loading unit is specifically configured to: preset a corresponding buffer space of the first sub-profile in the storage space;
  • the first sub-configuration is cached in the cache space, and the script file in the operating system is loaded and run.
  • FIG. 5 is a schematic structural diagram of a display device for an application page according to an embodiment of the present disclosure.
  • the display device of the application page is applied to the electronic device, and the display device of the application page includes a first obtaining unit 401, a first transceiver unit 402, a loading unit 403, and a generating unit 404, as follows:
  • the first obtaining unit 401 is configured to acquire an application identifier and a page identifier of the target display page when the display instruction of the application page is detected.
  • the first obtaining unit 401 detects the display instruction of the application page, the application identifier indicated by the display instruction and the page identifier of the target display page are acquired.
  • the application identifier may be an application name or a version number of the application
  • the target display page may be a display page selected by the user according to the need, or may be a default home page display page.
  • the first transceiver unit 402 is configured to send the application identifier and the page identifier to the configuration server, and receive a first sub-profile file returned by the configuration server according to the application identifier and the page identifier, where the first sub-profile is used for The target display page is displayed.
  • the first transceiver unit 402 sends the application identifier and the page identifier to the configuration server, and the configuration server determines, according to the application identifier, a plurality of sub-profiles corresponding to the application, and then determines, by using the page identifier, the child corresponding to the target display page of the plurality of sub-profiles.
  • the profile is returned, and the determined sub-profile is returned to the first transceiving unit 402.
  • the loading unit 403 is configured to cache the first sub-profile, and load and run a script file in the operating system.
  • the electronic device may preset a buffer space of the sub-profile in the storage space.
  • the loading unit 403 caches the sub-profile in the cache space. in. So that subsequent electronic devices can call this sub-profile to run at any time.
  • the script file in the operating system is loaded and run, and the script file mentioned in this embodiment may be a JavaScript script language file, that is, loaded and run.
  • the generating unit 404 is configured to parse the first sub-profile by using the script file, generate a native page corresponding to the target display page, and display the native page.
  • the generating unit 404 parses the global configuration information in the sub-profile by loading and running a JavaScript script language file, converts the parsed display element into a native-based view, and dynamically renders the native view to the page, thereby obtaining The target displays the native page corresponding to the page and displays the native page.
  • the first transceiver unit 402 may include:
  • the matching sub-unit 4021 is configured to match the association table based on the application identifier and the page identifier, and obtain the application identifier and the sub-profile identifier corresponding to the page identifier.
  • the transceiver sub-unit 4022 is configured to send the application identifier and the sub-profile identifier to the configuration server, and receive the first sub-profile returned by the configuration server according to the application identifier and the sub-profile identifier.
  • the apparatus further includes:
  • the marking unit 405 is configured to mark the native display page of the application such that each native display page includes a page identifier.
  • the establishing unit 406 is configured to establish an association table of the page identifier and the sub-profile identifier, where the association table indicates that each page identifier corresponds to the associated sub-profile identifier.
  • the second obtaining unit 407 is configured to acquire a page identifier of the linked page corresponding to the target display page.
  • the second transceiver unit 408 is configured to send the page identifier of the link page to the configuration server, and receive the second sub-profile returned by the configuration server according to the page identifier of the link page.
  • the cache unit 409 is configured to cache the second sub-profile.
  • the steps performed by the units in the display device of the application page may refer to the method steps described in the foregoing method embodiments.
  • the display device of the application page can be integrated in an electronic device, such as a mobile phone, a tablet computer, or the like.
  • the foregoing various units may be implemented as an independent entity, and may be implemented in any combination, and may be implemented as the same entity or a plurality of entities.
  • the foregoing units refer to the foregoing embodiments, and details are not described herein again.
  • the electronic device 500 includes a processor 501 and a memory 502.
  • the processor 501 is electrically connected to the memory 502.
  • the processor 500 is a control center of the electronic device 500, which connects various parts of the entire electronic device using various interfaces and lines, and executes by running or loading a computer program stored in the memory 502 and calling data stored in the memory 502.
  • the various functions of the electronic device 500 and processing of the data enable overall monitoring of the electronic device 500.
  • the memory 502 can be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running computer programs and modules stored in the memory 502.
  • the memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of electronic devices, etc.
  • memory 502 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 502 can also include a memory controller to provide processor 501 access to memory 502.
  • the processor 501 in the electronic device 500 loads the instructions corresponding to the process of one or more computer programs into the memory 502 according to the following steps, and is stored in the memory 502 by the processor 501.
  • the computer program in which to implement various functions, as follows:
  • the first sub-profile is parsed by the script file, the native page corresponding to the target display page is generated, and the native page is displayed.
  • the processor 501 may further perform the following steps:
  • the processor 501 may perform the following steps:
  • the global configuration information is parsed by the script file, and a native page corresponding to the target display page is generated according to the frame element, and the native page is displayed.
  • the processor 501 may further perform the following steps:
  • the processor 501 may perform the following steps. :
  • the application identifier and the page identifier are matched to the association table, and the application identifier and the sub-profile identifier corresponding to the page identifier are obtained.
  • the processor 501 may further perform the following steps:
  • the first sub-profile that is cached is deleted when it is detected that an operation instruction to close the native page is received.
  • the processor 501 may perform the following steps:
  • the first sub-configuration is cached in the cache space, and the script file in the operating system is loaded and run.
  • the electronic device 500 may further include: a display 503, a radio frequency circuit 504, an audio circuit 505, and a power source 506.
  • the display 503, the radio frequency circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501, respectively.
  • the display 503 can be used to display information entered by a user or information provided to a user, as well as various graphical user interfaces, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display 503 can include a display panel.
  • the display panel can be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the radio frequency circuit 504 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and to transmit and receive signals with network devices or other electronic devices.
  • the audio circuit 505 can be used to provide an audio interface between the user and the electronic device through a speaker, a microphone.
  • the power source 506 can be used to power various components of the electronic device 500.
  • the power source 506 can be logically coupled to the processor 501 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
  • the electronic device 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the embodiment of the present application further provides a storage medium storing a computer program, when the computer program is run on a computer, causing the computer to execute the display method of the application page in any of the above embodiments, for example, when detecting Obtaining an application identifier and a page identifier of the target display page when the display instruction of the application page is obtained; sending the application identifier and the page identifier to the configuration server, and receiving the first sub-configuration returned by the configuration server according to the application identifier and the page identifier a file, the first sub-profile is used to display the target display page; the first sub-profile is cached, the script file in the operating system is loaded and run, and the first sub-profile is parsed by the script file to generate a target display page. Corresponding native page and displaying the native page.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM).
  • ROM read only memory
  • RAM random access memory
  • a general tester in the field can understand all or part of the process of implementing the display method of the application page in the embodiment of the present application, and the related process can be controlled by a computer program.
  • the computer program can be stored in a computer readable storage medium, such as in a memory of the electronic device, and executed by at least one processor in the electronic device, and can include, for example, The flow of an embodiment of a display method of an application page.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory, a random access memory, or the like.
  • each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated module if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .

Abstract

The present embodiment discloses a display method, device, storage medium and electronic equipment for an application page, wherein, the method comprises acquiring an application identifier and a page identifier of a target display page, sending the application identifier and the page identifier to a configuration server, and receiving and caching, according to the application identifier and the page identifier, a first subconfiguration file returned by the configuration server, and, by script parsing of the first subconfiguration file, generating and displaying a native page corresponding to the target display page. Display efficiency of an application page is enhanced.

Description

应用页面的显示方法、装置、存储介质及电子设备Application page display method, device, storage medium and electronic device
本申请要求于2018年02月02日提交中国专利局、申请号为201810107351.0、发明名称为“一种应用页面的显示方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201101107351.0, entitled "Display Method, Apparatus, Storage Medium and Electronic Device of Application Page", filed on February 2, 2018, the entire disclosure of which is incorporated herein by reference. The content is incorporated herein by reference.
技术领域Technical field
本申请涉及电子设备技术领域,具体涉及一种应用页面的显示方法、装置、存储介质及电子设备。The present application relates to the field of electronic device technologies, and in particular, to a method, an apparatus, a storage medium, and an electronic device for displaying an application page.
背景技术Background technique
目前,随着终端技术的高速发展,如智能手机越来越深入人们的生活之中,在智能手机上可以安装各种各样的应用,如拍照应用、游戏应用、地图应用等等,以供用户使用。At present, with the rapid development of terminal technologies, such as smart phones, more and more people's lives, a variety of applications, such as camera applications, game applications, map applications, etc., can be installed on smartphones. User use.
但是,随着应用的功能越来越强大,每个应用对应占用的存储空间也越来越大,很可能会影响智能手机系统的正常运行,为了解决这个问题,目前可通过在浏览器上设置应用的指定入口,当检测到用户对指定入口的触发操作时,智能手机可以通过网络调取应用的配置文件,并基于智能手机上的脚本文件加载并运行该配置文件,实现应用页面的显示,然而,用户每次打开应用页面时,都必须加载应用的全部配置文件,浪费网络流量,并且增加了应用页面的显示时间。However, as the functions of the application become more and more powerful, the storage space occupied by each application is also larger and larger, which may affect the normal operation of the smartphone system. In order to solve this problem, it can be set by currently in the browser. The specified entry of the application, when detecting the trigger operation of the specified entry by the user, the smart phone can retrieve the configuration file of the application through the network, and load and run the configuration file based on the script file on the smart phone to realize the display of the application page. However, each time a user opens an application page, all of the application's configuration files must be loaded, wasting network traffic, and increasing the display time of the application page.
发明内容Summary of the invention
本申请实施例提供了一种应用页面的显示方法、装置、存储介质及电子设备,能够提升应用页面的显示效率。The embodiment of the present application provides a display method, an apparatus, a storage medium, and an electronic device of an application page, which can improve display efficiency of an application page.
第一方面,本申请实施例了提供了的一种应用页面的显示方法,应用于电子设备中,包括:In a first aspect, a display method of an application page is provided in an electronic device, which includes:
当检测到应用页面的显示指令时,获取应用标识以及目标显示页面的页面标识;Obtaining an application identifier and a page identifier of the target display page when the display instruction of the application page is detected;
将所述应用标识以及所述页面标识发送配置服务器,并接收所述配置服务器根据所述应用标识以及所述页面标识返回的第一子配置文件,所述第一子配置文件用于显示所述目标显示页面;Sending the application identifier and the page identifier to the configuration server, and receiving the first sub-profile file returned by the configuration server according to the application identifier and the page identifier, where the first sub-profile is used to display the Target display page;
缓存所述第一子配置文件,加载并运行操作系统中的脚本文件;Caching the first sub-profile, loading and running a script file in the operating system;
通过所述脚本文件解析所述第一子配置文件,生成目标显示页面对应的原生页面,并展示所述原生页面。Parsing the first sub-profile by the script file, generating a native page corresponding to the target display page, and displaying the native page.
第二方面,本申请实施例了提供了的一种应用页面的显示装置,包括:In a second aspect, the embodiment of the present application provides a display device for an application page, including:
第一获取单元,用于当检测到应用页面的显示指令时,获取应用标识以及目标显示页面的页面标识;a first acquiring unit, configured to acquire an application identifier and a page identifier of the target display page when the display instruction of the application page is detected;
第一收发单元,用于将所述应用标识以及所述页面标识发送配置服务器,并接收所述配置服务器根据所述应用标识以及所述页面标识返回的第一子配置文件,所述第一子配置 文件用于显示所述目标显示页面;a first transceiver unit, configured to send the application identifier and the page identifier to a configuration server, and receive a first sub-profile that is returned by the configuration server according to the application identifier and the page identifier, the first sub-profile A configuration file is used to display the target display page;
加载单元,用于缓存所述第一子配置文件,加载并运行操作系统中的脚本文件;a loading unit, configured to cache the first sub-profile, load and run a script file in an operating system;
生成单元,用于通过所述脚本文件解析所述第一子配置文件,生成目标显示页面对应的原生页面,并展示所述原生页面。And a generating unit, configured to parse the first sub-profile by using the script file, generate a native page corresponding to the target display page, and display the native page.
第三方面,本申请实施例提供的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如本申请任一实施例提供的应用页面的显示方法。In a third aspect, the storage medium provided by the embodiment of the present application has a computer program stored thereon, and when the computer program is run on a computer, the computer is configured to execute the display method of the application page provided by any embodiment of the present application. .
第四方面,本申请实施例提供的电子设备,包括处理器和存储器,所述存储器有计算机程序,所述处理器通过调用所述计算机程序,用于执行步骤:In a fourth aspect, an electronic device provided by an embodiment of the present application includes a processor and a memory, where the memory has a computer program, and the processor is configured to perform the steps by calling the computer program:
当检测到应用页面的显示指令时,获取应用标识以及目标显示页面的页面标识;Obtaining an application identifier and a page identifier of the target display page when the display instruction of the application page is detected;
将所述应用标识以及所述页面标识发送配置服务器,并接收所述配置服务器根据所述应用标识以及所述页面标识返回的第一子配置文件,所述第一子配置文件用于显示所述目标显示页面;Sending the application identifier and the page identifier to the configuration server, and receiving the first sub-profile file returned by the configuration server according to the application identifier and the page identifier, where the first sub-profile is used to display the Target display page;
缓存所述第一子配置文件,加载并运行操作系统中的脚本文件;Caching the first sub-profile, loading and running a script file in the operating system;
通过所述脚本文件解析所述第一子配置文件,生成目标显示页面对应的原生页面,并展示所述原生页面。Parsing the first sub-profile by the script file, generating a native page corresponding to the target display page, and displaying the native page.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings can also be obtained from those skilled in the art based on these drawings without paying any creative effort.
图1是本申请实施例提供的应用页面的显示方法的实施环境的示意图。FIG. 1 is a schematic diagram of an implementation environment of a display method of an application page according to an embodiment of the present application.
图2是本申请实施例提供的应用页面的显示方法的场景示意图。FIG. 2 is a schematic diagram of a scenario of a method for displaying an application page according to an embodiment of the present application.
图3是本申请实施例提供的应用页面的显示方法的一个流程示意图。FIG. 3 is a schematic flowchart of a method for displaying an application page according to an embodiment of the present application.
图4是本申请实施例提供的应用页面的显示方法的另一个流程示意图。FIG. 4 is another schematic flowchart of a method for displaying an application page according to an embodiment of the present application.
图5是本申请实施例提供的应用页面的显示装置的一个结构示意图。FIG. 5 is a schematic structural diagram of a display device of an application page according to an embodiment of the present application.
图6是本申请实施例提供的应用页面的显示装置的另一结构示意图。FIG. 6 is another schematic structural diagram of a display device of an application page according to an embodiment of the present application.
图7是本申请实施例提供的电子设备的一个结构示意图。FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
图8是本申请实施例提供的电子设备的另一结构示意图。FIG. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Referring to the drawings, wherein like reference numerals represent the same components, the principles of the present application are illustrated by the implementation in a suitable computing environment. The following description is based on the specific embodiments of the present invention as illustrated, and should not be construed as limiting the specific embodiments that are not described herein.
本申请实施例提供一种应用页面的显示方法,该应用页面的显示方法的执行主体可以 是本申请实施例提供的应用页面的显示装置,或者集成了该应用页面的显示装置的电子设备,其中该应用页面的显示装置可以采用硬件或者软件的方式实现。其中,电子设备可以是智能手机、平板电脑、掌上电脑、笔记本电脑、或者台式电脑等设备。The embodiment of the present application provides a display method of an application page, and the execution body of the display method of the application page may be a display device of an application page provided by the embodiment of the present application, or an electronic device integrated with the display device of the application page, where The display device of the application page can be implemented by hardware or software. The electronic device may be a device such as a smart phone, a tablet computer, a palmtop computer, a notebook computer, or a desktop computer.
请参阅图1,图1是本申请实施例提供的应用页面的显示方法的实施环境的示意图,如图1所示,该实施环境包括智能手机10、通信网络20以及服务器30。Please refer to FIG. 1 . FIG. 1 is a schematic diagram of an implementation environment of a method for displaying an application page according to an embodiment of the present application. As shown in FIG. 1 , the implementation environment includes a smart phone 10 , a communication network 20 , and a server 30 .
该智能手机10的操作系统可以为安卓系统、塞班系统、苹果系统等。该智能手机10和服务器30之间通过通信网络20连接。The operating system of the smartphone 10 can be an Android system, a Symbian system, an Apple system, or the like. The smartphone 10 and the server 30 are connected by a communication network 20.
该通信网络20,包括无线网络及有线网络。其中无线网络包括无线广域网、无线局域网、无线城域网、以及无线个人网中的一种或多种的组合。The communication network 20 includes a wireless network and a wired network. The wireless network includes a combination of one or more of a wireless wide area network, a wireless local area network, a wireless metropolitan area network, and a wireless personal network.
该服务器30中存储有应用的多个子配置文件,如图2所示,应用可以将配置文件分为多个子配置文件,每一子配置文件对应应用的一个原生页面,比如Page1的子配置文件1对应应用的一个原生页面2。每一子配置文件包含应用的每一原生页面对应的全局配置信息,该全局配置信息指示原生页面由哪些框架元素组成,比如配置应用页面的窗口背景色,配置导航条样式,配置默认标题等等。该智能手机10可以从服务器30获取应用的子配置文件,根据子配置文件生成应用对应的原生页面并展示,需要理解的是,该原生页面也可以通俗的称为“小程序”,从而在未安装应用的前提下,实现应用的运行,应用运行所需要的数据可即时从服务器30上获取。The server 30 stores a plurality of sub-profiles of the application. As shown in FIG. 2, the application may divide the configuration file into multiple sub-profiles, and each sub-profile corresponds to a native page of the application, such as the sub-profile 1 of Page1. Corresponding to a native page of the application 2. Each sub-profile contains global configuration information corresponding to each native page of the application, and the global configuration information indicates which frame elements the native page is composed of, such as configuring the background color of the application page, configuring the navigation bar style, configuring the default title, and the like. . The smart phone 10 can obtain the sub-profile of the application from the server 30, and generate and display the native page corresponding to the application according to the sub-profile. It should be understood that the native page can also be referred to as a “small program”, so that Under the premise of installing the application, the running of the application is realized, and the data required for the application running can be obtained from the server 30 immediately.
服务器30还可以对应用的子配置文件进行更新操作,以便为智能手机10提供更新后的子配置文件。The server 30 can also perform an update operation on the application's sub-profile to provide the smartphone 10 with the updated sub-profile.
在一实施方式中,该服务器30还可以存储应用的安装文件,智能手机10还可以从该服务器30上获取应用的安装文件,并通过安装该安装文件来完整的运行该应用。容易想到的是,该服务器30也可以对应用的安装文件进行更新,以便为智能手机10提供更新后的安装文件。In an embodiment, the server 30 may also store an installation file of the application, and the smart phone 10 may also obtain an installation file of the application from the server 30, and completely run the application by installing the installation file. It is easily conceivable that the server 30 can also update the installation files of the application to provide the updated installation files for the smartphone 10.
本发明实施例提供一种应用页面的显示方法,包括:The embodiment of the invention provides a display method of an application page, including:
当检测到应用页面的显示指令时,获取应用标识以及目标显示页面的页面标识;Obtaining an application identifier and a page identifier of the target display page when the display instruction of the application page is detected;
将该应用标识以及该页面标识发送配置服务器,并接收该配置服务器根据该应用标识以及该页面标识返回的第一子配置文件,该第一子配置文件用于显示该目标显示页面;And sending the application identifier and the page identifier to the configuration server, and receiving the first sub-profile file returned by the configuration server according to the application identifier and the page identifier, where the first sub-profile is used to display the target display page;
缓存该第一子配置文件,加载并运行操作系统中的脚本文件;Cache the first sub-profile, load and run the script file in the operating system;
通过该脚本文件解析该第一子配置文件,生成目标显示页面对应的原生页面,并展示该原生页面。The first sub-profile is parsed by the script file, the native page corresponding to the target display page is generated, and the native page is displayed.
在一种实施方式中,该通过该脚本文件解析该第一子配置文件,生成目标显示页面对应的原生页面,并展示该原生页面的步骤之后,还可以包括:获取目标显示页面对应关联的链接页面的页面标识;In an embodiment, the step of parsing the first sub-profile by the script file, generating a native page corresponding to the target display page, and displaying the native page may further include: obtaining a link corresponding to the target display page The page identifier of the page;
将该链接页面的页面标识发送配置服务器,并接收该配置服务器根据该链接页面的页 面标识返回的第二子配置文件;Sending the page identifier of the link page to the configuration server, and receiving a second sub-profile returned by the configuration server according to the page identifier of the link page;
缓存该第二子配置文件。Cache the second subprofile.
在一种实施方式中,第一子配置文件包括描述该目标显示页面的全局配置信息,该全局配置信息包括目标显示页面的框架元素,该通过该脚本文件解析该第一子配置文件,生成目标显示页面对应的原生页面,并展示该原生页面的步骤,可以包括:通过该脚本文件解析该全局配置信息,根据该框架元素生成目标显示页面对应的原生页面,并展示该原生页面。。In an embodiment, the first sub-profile includes global configuration information describing the target display page, where the global configuration information includes a frame element of the target display page, and the first sub-profile is parsed by the script file to generate a target. The step of displaying the native page corresponding to the page and displaying the native page may include: parsing the global configuration information by using the script file, generating a native page corresponding to the target display page according to the frame element, and displaying the native page. .
在一种实施方式中,该获取应用标识以及目标显示页面的页面标识的步骤之前,还可以包括:对应用的原生页面进行标记,以使得每一原生页面包括一页面标识;建立页面标识与子配置文件标识的关联表,该关联表指示每一页面标识对应关联的子配置文件标识。In an implementation manner, before the step of acquiring the application identifier and the page identifier of the target display page, the method further includes: marking the native page of the application, so that each native page includes a page identifier; establishing the page identifier and the child identifier An association table of configuration file identifiers, the association table indicating that each page identifier corresponds to an associated sub-profile identifier.
在一种实施方式中,该将该应用标识以及该页面标识发送配置服务器,并接收该配置服务器根据该应用标识以及该页面标识返回的第一子配置文件的步骤,可以包括:基于该应用标识以及该页面标识匹配该关联表,得到该应用标识以及该页面标识对应关联的子配置文件标识;In an embodiment, the step of sending the application identifier and the page identifier to the configuration server, and receiving the first sub-profile returned by the configuration server according to the application identifier and the page identifier may include: determining, based on the application identifier And the page identifier matches the association table, and the application identifier and the sub-profile identifier corresponding to the page identifier are obtained;
将该应用标识以及该子配置文件标识发送配置服务器,并接收该配置服务器根据该应用标识以及该子配置文件标识返回的第一子配置文件。Sending the application identifier and the sub-profile identifier to the configuration server, and receiving the first sub-profile returned by the configuration server according to the application identifier and the sub-profile identifier.
在一种实施方式中,该通过该脚本文件解析该第一子配置文件,生成目标显示页面对应的原生页面,并展示该原生页面的步骤之后,还可以包括:检测是否接收到关闭原生页面的操作指令;In an embodiment, after the step of parsing the first sub-profile by the script file, generating a native page corresponding to the target display page, and displaying the native page, the method further includes: detecting whether the native page is closed. Operation instruction
当检测到接收到关闭原生页面的操作指令时,将缓存的该第一子配置文件删除。The first sub-profile that is cached is deleted when it is detected that an operation instruction to close the native page is received.
在一种实施方式中,该缓存该第一子配置文件,加载并运行操作系统中的脚本文件的步骤,可以包括:在存储空间中预设该第一子配置文件相应的缓存空间;In an embodiment, the step of caching the first sub-profile, loading and running the script file in the operating system may include: presetting a corresponding cache space of the first sub-profile in the storage space;
当接收到第一子配置文件时,将该第一子配置缓存在该缓存空间中,加载并运行操作系统中的脚本文件。When the first sub-profile is received, the first sub-configuration is cached in the cache space, and the script file in the operating system is loaded and run.
请参阅图3,图3为本申请实施例提供的应用页面的显示方法的流程示意图。本申请实施例提供的应用页面的显示方法的具体流程可以如下:Please refer to FIG. 3 , which is a schematic flowchart of a method for displaying an application page according to an embodiment of the present application. The specific process of the display method of the application page provided by the embodiment of the present application may be as follows:
201、当检测到应用页面的显示指令时,获取应用标识以及目标显示页面的页面标识。201. When detecting a display instruction of the application page, obtain an application identifier and a page identifier of the target display page.
可以理解的是,本申请实施例所提到的显示指令,为用户触发应用显示的指定入口所产生,比如用户在使用浏览器的浏览页面,该浏览页面上有触发其他应用页面的指定入口,当检测到用户点击该指定入口时,相应的会生成应用页面的显示指令,该显示指令包含需要切换应用的应用标识以及对应需要显示的目标显示页面。应用的每一显示页面都对应唯一的页面标识。It can be understood that the display instruction mentioned in the embodiment of the present application is generated by a specified entry that the user triggers the application display. For example, the user is using a browser browsing page, and the browsing page has a designated entry for triggering other application pages. When it is detected that the user clicks on the specified entry, a corresponding display instruction of the application page is generated, and the display instruction includes an application identifier that needs to switch the application and a target display page that needs to be displayed. Each display page of the application corresponds to a unique page identifier.
其中,当检测到应用页面的显示指令时,获取显示指令指示的应用标识以及目标显示页面的页面标识。Wherein, when the display instruction of the application page is detected, the application identifier indicated by the display instruction and the page identifier of the target display page are acquired.
在一实施方式中,该应用标识可以为应用名称或者应用的版本号等,该目标显示页面可以为用户根据需要选定的显示页面,也可以为应用默认的主页显示页面。In an embodiment, the application identifier may be an application name or a version number of the application, and the target display page may be a display page selected by the user according to the need, or may be a default home page display page.
202、将应用标识以及页面标识发送配置服务器,并接收配置服务器根据应用标识以及页面标识返回的第一子配置文件。202. Send the application identifier and the page identifier to the configuration server, and receive the first sub-configuration file returned by the configuration server according to the application identifier and the page identifier.
需要说明的是,该配置服务器中存储了每一应用对应的多个子配置文件,且记录了每一子配置文件与应用的每一应用页面的页面标识的对应关系,每一页面标识对应唯一的子配置文件,该子配置文件用于显示对应的应用页面。该子配置文件中包含运行应用页面所需的数据和运行逻辑以及全局配置信息,该全局配置信息指示该应用页面是由哪些框架元素组成的,比如,配置应用页面的窗口背景色,配置导航条样式,配置默认标题等等。It should be noted that the configuration server stores multiple sub-configuration files corresponding to each application, and records the correspondence between each sub-configuration file and the page identifier of each application page of the application, and each page identifier is unique. A sub-profile that is used to display the corresponding application page. The sub-profile includes data and running logic and global configuration information required to run the application page, and the global configuration information indicates which frame elements the application page is composed of, for example, configuring the background color of the application page, and configuring the navigation bar. Style, configure default title, and more.
其中,电子设备将应用标识以及页面标识发送给配置服务器,配置服务器根据应用标识确定应用对应的多个子配置文件后,再通过页面标识确定多个子配置文件中目标显示页面对应的子配置文件,并且将确定的子配置文件返回至终端上。The electronic device sends the application identifier and the page identifier to the configuration server, and the configuration server determines, according to the application identifier, the plurality of sub-profiles corresponding to the application, and then determines the sub-profile corresponding to the target display page of the plurality of sub-profiles by using the page identifier, and Return the determined subprofile to the terminal.
在一实施方式中,该配置服务器中还可以保存有应用的安装文件,该安装文件用于安装对应的应用。In an embodiment, the configuration server may further save an installation file of the application, where the installation file is used to install the corresponding application.
进一步的,该子配置文件和安装文件为通过第三方供应商或者开发人员上传至配置服务器中,该第三方供应商以及开发人员还可以对配置服务器中的子配置文件和安装文件进行更新以及删除操作。Further, the sub-profile and the installation file are uploaded to the configuration server by a third-party vendor or developer, and the third-party vendor and developer can also update and delete the sub-profile and installation files in the configuration server. operating.
203、缓存第一子配置文件,加载并运行操作系统中的脚本文件。203. Cache the first sub-profile, load and run the script file in the operating system.
其中,电子设备可以在存储空间中预设该子配置文件的缓存空间,当电子设备接收到配置服务器返回的子配置文件时,将该子配置文件缓存在缓存空间中。以便后续电子设备可以随时调用该子配置文件运行。The electronic device may preset a buffer space of the sub-profile in the storage space. When the electronic device receives the sub-configuration file returned by the configuration server, the sub-configuration file is cached in the cache space. So that subsequent electronic devices can call this sub-profile to run at any time.
进一步的,在将该第一子配置文件缓存在缓存空间后,加载并运行操作系统中的脚本文件,本实施例所提到脚本文件可以为JavaScript脚本语言文件,即加载并运行嵌入在操作系统中的JavaScript脚本语言文件。Further, after the first sub-profile is cached in the cache space, the script file in the operating system is loaded and run, and the script file mentioned in this embodiment may be a JavaScript script language file, that is, loaded and run embedded in the operating system. The JavaScript scripting language file.
204、通过脚本文件解析第一子配置文件,生成目标显示页面对应的原生页面,并展示原生页面。204. Parse the first sub-configuration file through the script file, generate a native page corresponding to the target display page, and display the native page.
其中,通过加载并运行的JavaScript脚本语言文件解析子配置文件中的全局配置信息,将解析得到的显示元素转换为基于原生的视图,并动态地对原生视图进行页面渲染,从而得到目标显示页面对应的原生页面,并展示该原生页面。The global configuration information in the sub-profile is parsed by the loaded and running JavaScript script language file, and the parsed display element is converted into a native-based view, and the native view is dynamically rendered, thereby obtaining the target display page correspondingly. Native page and show the native page.
由上可知,本申请实施例通过当检测到应用页面的显示指令时,获取应用标识以及目标显示页面的页面标识;将应用标识以及页面标识发送配置服务器,并接收配置服务器根据应用标识以及页面标识返回的第一子配置文件,第一子配置文件用于显示目标显示页面;缓存第一子配置文件,加载并运行操作系统中的脚本文件;通过脚本文件解析第一子配置文件,生成目标显示页面对应的原生页面,并展示原生页面。以此在未安装应用的情况下, 针对性的获取需要的子配置文件快速的显示应用页面,提升了应用页面的显示效率。As shown in the above, the embodiment of the present application obtains the application identifier and the page identifier of the target display page when the display instruction of the application page is detected; sends the application identifier and the page identifier to the configuration server, and receives the configuration server according to the application identifier and the page identifier. The first sub-profile returned, the first sub-profile is used to display the target display page; the first sub-profile is cached, the script file in the operating system is loaded and run, and the first sub-profile is parsed through the script file to generate a target display. The page corresponds to the native page and displays the native page. In this way, if the application is not installed, the sub-configuration file required for the targeted acquisition can quickly display the application page, thereby improving the display efficiency of the application page.
进一步地,由于可以在未安装应用的情况下,快速开启应用的原生页面,使得用户可以对应用进行初步体验,在基于初步体验的情况下选择是否安装该应用,还可以提升用户选择的多样性。Further, since the native page of the application can be quickly opened without the application being installed, the user can perform an initial experience on the application, and whether to install the application based on the initial experience can also improve the diversity of the user selection. .
下面将在上述实施例描述的方法基础上,对本申请的显示方法做进一步介绍。参考图4,该应用页面的显示方法可以包括:The display method of the present application will be further described below based on the method described in the above embodiments. Referring to FIG. 4, the display method of the application page may include:
301、对应用的原生页面进行标记,以使得每一原生页面包括一页面标识。301. Mark the native page of the application such that each native page includes a page identifier.
需要说明的是,应用页面由多个原生页面组成,而多个原生页面对应一个总配置文件,现有的应用页面显示方法为当检测到应用页面的显示指令时,从网络上获取总配置文件,并通过加载该总配置文件来显示应用页面。由于总配置文件的存储空间一般都较大,所以导致加载时间比较少,可能会出现应用页面显示卡顿的问题。It should be noted that the application page is composed of multiple native pages, and multiple native pages correspond to one total configuration file. The existing application page display method is to obtain the total configuration file from the network when the display instruction of the application page is detected. And display the app page by loading the total profile. Since the storage space of the total configuration file is generally large, the loading time is relatively small, and there may be a problem that the application page displays a jam.
其中,本申请实施例通过对应用的多个原生页面分别进行标记,使得每一原生页面包括唯一的页面标识,后续可以通过该页面标识确定需要显示的目标显示页面。The embodiment of the present application marks each of the original pages of the application separately, so that each of the native pages includes a unique page identifier, and the target display page that needs to be displayed can be determined by the page identifier.
302、建立页面标识与子配置文件标识的关联表302. Establish an association table between the page identifier and the sub-profile identifier.
其中,由于打开应用的每一原生页面可能只需要总配置文件中的部分子配置文件,那么若在确认页面标识的情况下,只下载缓存对应的部分子配置文件可以明显的减少应用页面显示的时间。Wherein, since each native page of the open application may only need a part of the sub-profiles in the total configuration file, if only the partial sub-configuration file corresponding to the cache is downloaded in the case of confirming the page identifier, the application page display may be significantly reduced. time.
进一步的,开发人员可以提前建立每一应用的页面标识与子配置文件标识的关联表,每一页面标识对应不同的子配置文件标识。如图2所示,可以将应用页面分为Page1、Page2、Page3、Home等,该每一页面对应关联不同的子配置文件,如Page1对应子配置文件Page1.rpk、Page2对应子配置文件Page2.rpk等,以此类推,可以建立每一页面标识与每一子配置文件标识的关联表。基于该关联表可以快速的查出页面标识对应关联的子配置文件标识。Further, the developer may establish an association table of the page identifier and the sub-profile identifier of each application in advance, and each page identifier corresponds to a different sub-profile identifier. As shown in FIG. 2, the application page can be divided into Page1, Page2, Page3, Home, etc., and each page corresponds to a different sub-profile, such as Page1 corresponding sub-profile Page1.rpk, Page2 corresponding sub-profile Page2. Rpk, etc., and so on, can establish an association table for each page identifier and each sub-profile identifier. Based on the association table, the sub-profile identifier corresponding to the page identifier can be quickly detected.
303、基于应用标识以及页面标识匹配关联表,得到应用标识以及页面标识对应关联的子配置文件标识。303. Match the association table based on the application identifier and the page identifier, and obtain the sub-profile identifier corresponding to the application identifier and the page identifier.
其中,首先通过应用标识确定对应的关联表,该应用标识可以为应用名称或者应用版本号等,在确定了对应的关联表后,基于页面标识匹配该关联表,得出对应的子配置文件标识,基于该子配置文件标识可以快速的获取对应的子配置文件。First, the corresponding association table is determined by the application identifier, and the application identifier may be an application name or an application version number. After the corresponding association table is determined, the association table is matched based on the page identifier, and the corresponding sub-profile identifier is obtained. Based on the sub-profile identifier, the corresponding sub-profile can be quickly obtained.
304、将应用标识以及子配置文件标识发送配置服务器,并接收配置服务器根据应用标识以及子配置文件标识返回的第一子配置文件。304. Send the application identifier and the sub-profile identifier to the configuration server, and receive the first sub-profile returned by the configuration server according to the application identifier and the sub-profile identifier.
需要说明的是,该子配置文件包括描述该原生页面的全局配置信息,该全局配置信息包括原生页面的框架元素,该框架元素可以为原生页面的窗口背景色、导航条样式、标题样式等等。It should be noted that the sub-profile includes global configuration information describing the native page, and the global configuration information includes a frame element of the native page, and the frame element may be a window background color of the native page, a navigation bar style, a title style, and the like. .
其中,电子设备将应用标识以及子配置文件标识发送给配置服务器,配置服务器根据 应用标识以及子配置文件标识可以快速的确定应用对应的多个子配置文件,并且将确定的第一子配置文件返回至终端上。The electronic device sends the application identifier and the sub-profile identifier to the configuration server, and the configuration server can quickly determine the plurality of sub-profiles corresponding to the application according to the application identifier and the sub-profile identifier, and return the determined first sub-profile to the On the terminal.
比如,以手机为例,手机将应用标识为“XX美食应用”以及子配置文件标识“Page1.rpk”发送至配置服务器,配置服务器根据应用标识为“XX美食应用”以及子配置文件标识“Page1.rpk”快速的确定对应的第一子配置文件Page1.rpk,并将子配置文件Page1.rpk返回至手机上。For example, taking a mobile phone as an example, the mobile phone identifies the application as "XX gourmet application" and the sub-profile identification "Page1.rpk" to the configuration server, and the configuration server identifies the "XX gourmet application" and the sub-profile identification "Page1" according to the application identifier. .rpk" quickly determines the corresponding first sub-profile Page1.rpk and returns the sub-profile Page1.rpk to the phone.
在一实施方式中,该配置服务器中还可以保存有应用的安装文件,该安装文件用于安装对应的应用。In an embodiment, the configuration server may further save an installation file of the application, where the installation file is used to install the corresponding application.
进一步的,该子配置文件和安装文件为通过第三方供应商或者开发人员上传至配置服务器中,该第三方供应商以及开发人员还可以对配置服务器中的子配置文件和安装文件进行更新以及删除操作。Further, the sub-profile and the installation file are uploaded to the configuration server by a third-party vendor or developer, and the third-party vendor and developer can also update and delete the sub-profile and installation files in the configuration server. operating.
305、缓存第一子配置文件,加载并运行操作系统中的脚本文件305. Cache the first sub-profile, load and run the script file in the operating system.
其中,电子设备可以在存储空间中预设该子配置文件的缓存空间,当电子设备接收到配置服务器返回的子配置文件时,将该子配置文件缓存在缓存空间中。以便后续电子设备可以随时调用该子配置文件运行。The electronic device may preset a buffer space of the sub-profile in the storage space. When the electronic device receives the sub-configuration file returned by the configuration server, the sub-configuration file is cached in the cache space. So that subsequent electronic devices can call this sub-profile to run at any time.
进一步的,在将该第一子配置文件缓存在缓存空间后,加载并运行操作系统中的脚本文件,本实施例所提到脚本文件可以为JavaScript脚本语言文件,即加载并运行嵌入在操作系统中的JavaScript脚本语言文件。Further, after the first sub-profile is cached in the cache space, the script file in the operating system is loaded and run, and the script file mentioned in this embodiment may be a JavaScript script language file, that is, loaded and run embedded in the operating system. The JavaScript scripting language file.
306、通过脚本文件解析全局配置信息,根据框架元素生成目标显示页面对应的原生页面,并展示原生页面。306. Parse the global configuration information through the script file, generate a native page corresponding to the target display page according to the frame element, and display the native page.
其中,通过加载并运行的JavaScript脚本语言文件解析子配置文件中的全局配置信息,将解析得到的显示元素转换为基于原生的视图,并动态地对原生视图进行页面渲染,从而得到目标显示页面对应的原生页面,并展示该原生页面。The global configuration information in the sub-profile is parsed by the loaded and running JavaScript script language file, and the parsed display element is converted into a native-based view, and the native view is dynamically rendered, thereby obtaining the target display page correspondingly. Native page and show the native page.
在一实施方式中,在该通过脚本文件解析全局配置信息,根据框架元素生成目标显示页面对应的原生页面,并展示原生页面之后,还包括:In an embodiment, after the global configuration information is parsed by the script file, and the native page corresponding to the target display page is generated according to the frame element, and the native page is displayed, the method further includes:
(1)获取目标显示页面对应关联的链接页面的页面标识。(1) Obtain the page identifier of the linked page corresponding to the target display page.
可以理解的是,每一原生页面上可以包含多个超链接文本,当用户点击该超链接文本时,会跳转到链接对应得原生页面上。It can be understood that each native page can contain multiple hyperlink texts, and when the user clicks on the hyperlink text, it will jump to the link corresponding to the original page.
其中,当展示了原生页面之后,可以自动获取当前原生页面对应关联的链接页面的页面标识,以便进行预加载。After the native page is displayed, the page identifier of the linked page corresponding to the current native page may be automatically obtained for preloading.
(2)将该链接页面的页面标识发送配置服务器,并接收该配置服务器根据该链接页面的页面标识返回的第二子配置文件。(2) sending the page identifier of the link page to the configuration server, and receiving the second sub-profile returned by the configuration server according to the page identifier of the link page.
其中,在确定了链接页面的页面标识之后,将该页面标识发送至配置服务器,配置服务器根据该页面标识得到对应的第二子配置文件,并将该第二子配置文件返回至电子设备 上。After the page identifier of the link page is determined, the page identifier is sent to the configuration server, and the configuration server obtains the corresponding second sub-profile according to the page identifier, and returns the second sub-profile to the electronic device.
(3)缓存该第二子配置文件。(3) Cache the second sub-profile.
其中,电子设备在接收到该第二子配置文件之后,将该第二子配置文件缓存在缓存空间中,以此,当用户点击超链接文本时,可以直接调用该第二子配置文件,以达到快速切换原生页面的效果。After receiving the second sub-profile, the electronic device caches the second sub-profile in the cache space, so that when the user clicks on the hyperlink text, the second sub-profile can be directly invoked. Achieve the effect of quickly switching native pages.
307、检测是否接收到关闭原生页面的操作指令。307. Detect whether an operation instruction for closing the native page is received.
其中,当检测到接收到关闭原生页面的操作指令时,执行步骤308;当未检测到接收到关闭原生页面的操作指令时,返回继续执行步骤306,展示原生页面。When it is detected that the operation instruction for closing the native page is received, step 308 is performed; when it is not detected that the operation instruction for closing the native page is received, the process returns to step 306 to display the native page.
308、将缓存的第一子配置文件删除。308. Delete the cached first sub-profile.
其中,当检测到接收到关闭原生页面的操作指令时,说明运行子配置文件的脚本文件已经关闭,此时,若继续将缓存的子配置文件存储在缓存空间中,将造成电子设备的存储空间的浪费。When it is detected that the operation instruction for closing the native page is received, the script file for running the sub-configuration file is closed. At this time, if the cached sub-configuration file is continuously stored in the cache space, the storage space of the electronic device is caused. Waste.
基于此,当检测到接收到用户关闭原生页面的操作指令时,将缓存的子配置文件删除,以此,节省电子设备的存储空间。Based on this, when it is detected that the operation instruction of the user to close the native page is received, the cached sub-profile is deleted, thereby saving the storage space of the electronic device.
由上可知,本申请实施例通过当检测到应用页面的显示指令时,获取应用标识以及目标显示页面的页面标识;将应用标识以及页面标识发送配置服务器,并接收配置服务器根据应用标识以及页面标识返回的第一子配置文件,第一子配置文件用于显示目标显示页面;缓存第一子配置文件,加载并运行操作系统中的脚本文件;通过脚本文件解析第一子配置文件,生成目标显示页面对应的原生页面,并展示原生页面。以此在未安装应用的情况下,针对性的获取需要的子配置文件快速的显示应用页面,提升了应用页面的显示效率。As shown in the above, the embodiment of the present application obtains the application identifier and the page identifier of the target display page when the display instruction of the application page is detected; sends the application identifier and the page identifier to the configuration server, and receives the configuration server according to the application identifier and the page identifier. The first sub-profile returned, the first sub-profile is used to display the target display page; the first sub-profile is cached, the script file in the operating system is loaded and run, and the first sub-profile is parsed through the script file to generate a target display. The page corresponds to the native page and displays the native page. In this way, if the application is not installed, the sub-configuration file required for the targeted acquisition can quickly display the application page, thereby improving the display efficiency of the application page.
进一步地,由于可以在未安装应用的情况下,快速开启应用的原生页面,使得用户可以对应用进行初步体验,在基于初步体验的情况下选择是否安装该应用,还可以提升用户选择的多样性。Further, since the native page of the application can be quickly opened without the application being installed, the user can perform an initial experience on the application, and whether to install the application based on the initial experience can also improve the diversity of the user selection. .
本发明实施例提供一种应用页面的显示装置,包括:An embodiment of the present invention provides a display device for an application page, including:
第一获取单元,用于当检测到应用页面的显示指令时,获取应用标识以及目标显示页面的页面标识;a first acquiring unit, configured to acquire an application identifier and a page identifier of the target display page when the display instruction of the application page is detected;
第一收发单元,用于将该应用标识以及该页面标识发送配置服务器,并接收该配置服务器根据该应用标识以及该页面标识返回的第一子配置文件,该第一子配置文件用于显示该目标显示页面;a first transceiver unit, configured to send the application identifier and the page identifier to the configuration server, and receive a first sub-profile file returned by the configuration server according to the application identifier and the page identifier, where the first sub-profile is used to display the Target display page;
加载单元,用于缓存该第一子配置文件,加载并运行操作系统中的脚本文件;a loading unit for caching the first sub-profile, loading and running a script file in the operating system;
生成单元,用于通过该脚本文件解析该第一子配置文件,生成目标显示页面对应的原生页面,并展示该原生页面。And a generating unit, configured to parse the first sub-profile by using the script file, generate a native page corresponding to the target display page, and display the native page.
在一种实施方式中,该装置还包括:第二获取单元,用于获取目标显示页面对应关联的链接页面的页面标识;In an embodiment, the device further includes: a second obtaining unit, configured to acquire a page identifier of the linked page corresponding to the target display page;
第二收发单元,用于将该链接页面的页面标识发送配置服务器,并接收该配置服务器根据该链接页面的页面标识返回的第二子配置文件;a second transceiver unit, configured to send the page identifier of the link page to the configuration server, and receive a second sub-profile file returned by the configuration server according to the page identifier of the link page;
缓存单元,用于缓存该第二子配置文件。a cache unit for caching the second sub-profile.
在一种实施方式中,该装置还包括:标记单元,用于对应用的原生页面进行标记,以使得每一原生页面包括一页面标识;In an embodiment, the apparatus further includes: a marking unit, configured to mark the native page of the application such that each native page includes a page identifier;
建立单元,用于建立页面标识与子配置文件标识的关联表,该关联表指示每一页面标识对应关联的子配置文件标识。The establishing unit is configured to establish an association table between the page identifier and the sub-profile identifier, where the association table indicates that each page identifier corresponds to the associated sub-profile identifier.
在一种实施方式中,该第一收发单元,可以包括:匹配子单元,用于基于该应用标识以及该页面标识匹配该关联表,得到该应用标识以及该页面标识对应关联的子配置文件标识;In an embodiment, the first transceiver unit may include: a matching subunit, configured to match the association table based on the application identifier and the page identifier, to obtain the application identifier and the sub-profile identifier corresponding to the page identifier. ;
收发子单元,用于将该应用标识以及该子配置文件标识发送配置服务器,并接收该配置服务器根据该应用标识以及该子配置文件标识返回的第一子配置文件。The transceiver subunit is configured to send the application identifier and the sub-profile identifier to the configuration server, and receive the first sub-configuration file returned by the configuration server according to the application identifier and the sub-profile identifier.
在一种实施方式中,该加载单元,具体用于:在存储空间中预设该第一子配置文件相应的缓存空间;In an embodiment, the loading unit is specifically configured to: preset a corresponding buffer space of the first sub-profile in the storage space;
当接收到第一子配置文件时,将该第一子配置缓存在该缓存空间中,加载并运行操作系统中的脚本文件。When the first sub-profile is received, the first sub-configuration is cached in the cache space, and the script file in the operating system is loaded and run.
在一实施例中还提供了一种应用页面的显示装置。请参阅图5,图5为本申请实施例提供的应用页面的显示装置的结构示意图。其中该应用页面的显示装置应用于电子设备,该应用页面的显示装置包括第一获取单元401、第一收发单元402、加载单元403以及生成单元404,如下:A display device for an application page is also provided in an embodiment. Please refer to FIG. 5 , which is a schematic structural diagram of a display device for an application page according to an embodiment of the present disclosure. The display device of the application page is applied to the electronic device, and the display device of the application page includes a first obtaining unit 401, a first transceiver unit 402, a loading unit 403, and a generating unit 404, as follows:
该第一获取单元401,用于当检测到应用页面的显示指令时,获取应用标识以及目标显示页面的页面标识。The first obtaining unit 401 is configured to acquire an application identifier and a page identifier of the target display page when the display instruction of the application page is detected.
其中,当该第一获取单元401检测到应用页面的显示指令时,获取显示指令指示的应用标识以及目标显示页面的页面标识。When the first obtaining unit 401 detects the display instruction of the application page, the application identifier indicated by the display instruction and the page identifier of the target display page are acquired.
在一实施方式中,该应用标识可以为应用名称或者应用的版本号等,该目标显示页面可以为用户根据需要选定的显示页面,也可以为应用默认的主页显示页面。In an embodiment, the application identifier may be an application name or a version number of the application, and the target display page may be a display page selected by the user according to the need, or may be a default home page display page.
该第一收发单元402,用于将该应用标识以及该页面标识发送配置服务器,并接收该配置服务器根据该应用标识以及该页面标识返回的第一子配置文件,该第一子配置文件用于显示该目标显示页面。The first transceiver unit 402 is configured to send the application identifier and the page identifier to the configuration server, and receive a first sub-profile file returned by the configuration server according to the application identifier and the page identifier, where the first sub-profile is used for The target display page is displayed.
其中,该第一收发单元402将应用标识以及页面标识发送给配置服务器,配置服务器根据应用标识确定应用对应的多个子配置文件后,再通过页面标识确定多个子配置文件中目标显示页面对应的子配置文件,并且将确定的子配置文件返回至第一收发单元402中。The first transceiver unit 402 sends the application identifier and the page identifier to the configuration server, and the configuration server determines, according to the application identifier, a plurality of sub-profiles corresponding to the application, and then determines, by using the page identifier, the child corresponding to the target display page of the plurality of sub-profiles. The profile is returned, and the determined sub-profile is returned to the first transceiving unit 402.
该加载单元403,用于缓存该第一子配置文件,加载并运行操作系统中的脚本文件。The loading unit 403 is configured to cache the first sub-profile, and load and run a script file in the operating system.
其中,电子设备可以在存储空间中预设该子配置文件的缓存空间,当该第一收发单元 402接收到配置服务器返回的子配置文件时,该加载单元403将该子配置文件缓存在缓存空间中。以便后续电子设备可以随时调用该子配置文件运行。The electronic device may preset a buffer space of the sub-profile in the storage space. When the first transceiver unit 402 receives the sub-configuration file returned by the configuration server, the loading unit 403 caches the sub-profile in the cache space. in. So that subsequent electronic devices can call this sub-profile to run at any time.
进一步的,在该加载单元403将该第一子配置文件缓存在缓存空间后,加载并运行操作系统中的脚本文件,本实施例所提到脚本文件可以为JavaScript脚本语言文件,即加载并运行嵌入在操作系统中的JavaScript脚本语言文件。Further, after the loading unit 403 caches the first sub-profile in the cache space, the script file in the operating system is loaded and run, and the script file mentioned in this embodiment may be a JavaScript script language file, that is, loaded and run. A JavaScript scripting language file embedded in the operating system.
该生成单元404,用于通过该脚本文件解析该第一子配置文件,生成目标显示页面对应的原生页面,并展示该原生页面。The generating unit 404 is configured to parse the first sub-profile by using the script file, generate a native page corresponding to the target display page, and display the native page.
其中,该生成单元404通过加载并运行的JavaScript脚本语言文件解析子配置文件中的全局配置信息,将解析得到的显示元素转换为基于原生的视图,并动态地对原生视图进行页面渲染,从而得到目标显示页面对应的原生页面,并展示该原生页面。The generating unit 404 parses the global configuration information in the sub-profile by loading and running a JavaScript script language file, converts the parsed display element into a native-based view, and dynamically renders the native view to the page, thereby obtaining The target displays the native page corresponding to the page and displays the native page.
在一实施例中,参考图6,该第一收发单元402,可以包括:In an embodiment, referring to FIG. 6, the first transceiver unit 402 may include:
匹配子单元4021,用于基于该应用标识以及该页面标识匹配该关联表,得到该应用标识以及该页面标识对应关联的子配置文件标识;The matching sub-unit 4021 is configured to match the association table based on the application identifier and the page identifier, and obtain the application identifier and the sub-profile identifier corresponding to the page identifier.
收发子单元4022,用于将该应用标识以及该子配置文件标识发送配置服务器,并接收该配置服务器根据该应用标识以及该子配置文件标识返回的第一子配置文件。The transceiver sub-unit 4022 is configured to send the application identifier and the sub-profile identifier to the configuration server, and receive the first sub-profile returned by the configuration server according to the application identifier and the sub-profile identifier.
在一实施例中,参考图6,该装置还包括:In an embodiment, referring to FIG. 6, the apparatus further includes:
标记单元405,用于对应用的原生显示页面进行标记,以使得每一原生显示页面包括一页面标识。The marking unit 405 is configured to mark the native display page of the application such that each native display page includes a page identifier.
建立单元406,用于建立页面标识与子配置文件标识的关联表,该关联表指示每一页面标识对应关联的子配置文件标识。The establishing unit 406 is configured to establish an association table of the page identifier and the sub-profile identifier, where the association table indicates that each page identifier corresponds to the associated sub-profile identifier.
第二获取单元407,用于获取目标显示页面对应关联的链接页面的页面标识。The second obtaining unit 407 is configured to acquire a page identifier of the linked page corresponding to the target display page.
第二收发单元408,用于将该链接页面的页面标识发送配置服务器,并接收该配置服务器根据该链接页面的页面标识返回的第二子配置文件。The second transceiver unit 408 is configured to send the page identifier of the link page to the configuration server, and receive the second sub-profile returned by the configuration server according to the page identifier of the link page.
缓存单元409,用于缓存该第二子配置文件。The cache unit 409 is configured to cache the second sub-profile.
其中,应用页面的显示装置中各单元执行的步骤可以参考上述方法实施例描述的方法步骤。该应用页面的显示装置可以集成在电子设备中,如手机、平板电脑等。The steps performed by the units in the display device of the application page may refer to the method steps described in the foregoing method embodiments. The display device of the application page can be integrated in an electronic device, such as a mobile phone, a tablet computer, or the like.
具体实施时,以上各个单元可以作为独立的实体实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单位的具体实施可参见前面的实施例,在此不再赘述。In the specific implementation, the foregoing various units may be implemented as an independent entity, and may be implemented in any combination, and may be implemented as the same entity or a plurality of entities. For the specific implementation of the foregoing units, refer to the foregoing embodiments, and details are not described herein again.
本申请实施例还提供一种电子设备。请参阅图7,电子设备500包括处理器501以及存储器502。其中,处理器501与存储器502电性连接。An embodiment of the present application further provides an electronic device. Referring to FIG. 7, the electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
该处理器500是电子设备500的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器502内的计算机程序,以及调用存储在存储器502内的数据,执行电子设备500的各种功能并处理数据,从而对电子设备500进行整体监控。The processor 500 is a control center of the electronic device 500, which connects various parts of the entire electronic device using various interfaces and lines, and executes by running or loading a computer program stored in the memory 502 and calling data stored in the memory 502. The various functions of the electronic device 500 and processing of the data enable overall monitoring of the electronic device 500.
该存储器502可用于存储软件程序以及模块,处理器501通过运行存储在存储器502 的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器501对存储器502的访问。The memory 502 can be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running computer programs and modules stored in the memory 502. The memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of electronic devices, etc. Moreover, memory 502 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 502 can also include a memory controller to provide processor 501 access to memory 502.
在本申请实施例中,电子设备500中的处理器501会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器502中,并由处理器501运行存储在存储器502中的计算机程序,从而实现各种功能,如下:In the embodiment of the present application, the processor 501 in the electronic device 500 loads the instructions corresponding to the process of one or more computer programs into the memory 502 according to the following steps, and is stored in the memory 502 by the processor 501. The computer program in which to implement various functions, as follows:
当检测到应用页面的显示指令时,获取应用标识以及目标显示页面的页面标识;Obtaining an application identifier and a page identifier of the target display page when the display instruction of the application page is detected;
将该应用标识以及该页面标识发送配置服务器,并接收该配置服务器根据该应用标识以及该页面标识返回的第一子配置文件,该第一子配置文件用于显示该目标显示页面;And sending the application identifier and the page identifier to the configuration server, and receiving the first sub-profile file returned by the configuration server according to the application identifier and the page identifier, where the first sub-profile is used to display the target display page;
缓存该第一子配置文件,加载并运行操作系统中的脚本文件;Cache the first sub-profile, load and run the script file in the operating system;
通过该脚本文件解析该第一子配置文件,生成目标显示页面对应的原生页面,并展示该原生页面。The first sub-profile is parsed by the script file, the native page corresponding to the target display page is generated, and the native page is displayed.
在某些实施方式中,在通过该脚本文件解析该第一子配置文件,生成目标显示页面对应的原生页面,并展示该原生页面之后,处理器501还可以具体执行以下步骤:In some embodiments, after parsing the first sub-profile by the script file, generating a native page corresponding to the target display page, and displaying the native page, the processor 501 may further perform the following steps:
获取目标显示页面对应关联的链接页面的页面标识;Obtaining a page identifier of the linked page corresponding to the target display page;
将该链接页面的页面标识发送配置服务器,并接收该配置服务器根据该链接页面的页面标识返回的第二子配置文件;Sending the page identifier of the link page to the configuration server, and receiving the second sub-profile returned by the configuration server according to the page identifier of the link page;
缓存该第二子配置文件。Cache the second subprofile.
在某些实施方式中,在该通过该脚本文件解析该第一子配置文件,生成目标显示页面对应的原生页面,并展示该原生页面时,处理器501可以具体执行以下步骤:In some embodiments, when the first sub-profile is parsed by the script file, the native page corresponding to the target display page is generated, and the native page is displayed, the processor 501 may perform the following steps:
通过该脚本文件解析该全局配置信息,根据该框架元素生成目标显示页面对应的原生页面,并展示该原生页面。The global configuration information is parsed by the script file, and a native page corresponding to the target display page is generated according to the frame element, and the native page is displayed.
在某些实施方式中,在获取应用标识以及目标显示页面的页面标识之前,处理器501还可以具体执行以下步骤:In some embodiments, before acquiring the application identifier and the page identifier of the target display page, the processor 501 may further perform the following steps:
对应用的原生显示页面进行标记,以使得每一原生显示页面包括一页面标识;Marking the native display page of the application such that each native display page includes a page identifier;
建立页面标识与子配置文件标识的关联表,该关联表指示每一页面标识对应关联的子配置文件标识。Establishing an association table of the page identifier and the sub-profile identifier, where the association table indicates that each page identifier corresponds to the associated sub-profile identifier.
在某些实施方式中,在将该应用标识以及该页面标识发送配置服务器,并接收该配置服务器根据该应用标识以及该页面标识返回的第一子配置文件时,处理器501可以具体执行以下步骤:In some embodiments, when the application identifier and the page identifier are sent to the configuration server, and the first sub-profile returned by the configuration server according to the application identifier and the page identifier is received, the processor 501 may perform the following steps. :
基于该应用标识以及该页面标识匹配该关联表,得到该应用标识以及该页面标识对应 关联的子配置文件标识;The application identifier and the page identifier are matched to the association table, and the application identifier and the sub-profile identifier corresponding to the page identifier are obtained.
将该应用标识以及该子配置文件标识发送配置服务器,并接收该配置服务器根据该应用标识以及该子配置文件标识返回的第一子配置文件。Sending the application identifier and the sub-profile identifier to the configuration server, and receiving the first sub-profile returned by the configuration server according to the application identifier and the sub-profile identifier.
在某些实施方式中,在过该脚本文件解析该第一子配置文件,生成目标显示页面对应的原生页面,并展示该原生页面之后,处理器501还可以具体执行以下步骤:In some embodiments, after the script file parses the first sub-profile, generates a native page corresponding to the target display page, and displays the native page, the processor 501 may further perform the following steps:
检测是否接收到关闭原生页面的操作指令;Detecting whether an operation instruction to close the native page is received;
当检测到接收到关闭原生页面的操作指令时,将缓存的该第一子配置文件删除。The first sub-profile that is cached is deleted when it is detected that an operation instruction to close the native page is received.
在某些实施方式中,在缓存该第一子配置文件,加载并运行操作系统中的脚本文件时,处理器501可以具体执行以下步骤:In some embodiments, when the first sub-profile is cached and the script file in the operating system is loaded and run, the processor 501 may perform the following steps:
在存储空间中预设该第一子配置文件相应的缓存空间;Presetting the corresponding cache space of the first sub-profile in the storage space;
当接收到第一子配置文件时,将该第一子配置缓存在该缓存空间中,加载并运行操作系统中的脚本文件。When the first sub-profile is received, the first sub-configuration is cached in the cache space, and the script file in the operating system is loaded and run.
请一并参阅图8,在某些实施方式中,电子设备500还可以包括:显示器503、射频电路504、音频电路505以及电源506。其中,其中,显示器503、射频电路504、音频电路505以及电源506分别与处理器501电性连接。Referring to FIG. 8 together, in some embodiments, the electronic device 500 may further include: a display 503, a radio frequency circuit 504, an audio circuit 505, and a power source 506. The display 503, the radio frequency circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501, respectively.
该显示器503可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示器503可以包括显示面板,在某些实施方式中,可以采用液晶显示器(Liquid Crystal Display,LCD)、或者有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。The display 503 can be used to display information entered by a user or information provided to a user, as well as various graphical user interfaces, which can be composed of graphics, text, icons, video, and any combination thereof. The display 503 can include a display panel. In some embodiments, the display panel can be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED).
该射频电路504可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。The radio frequency circuit 504 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and to transmit and receive signals with network devices or other electronic devices.
该音频电路505可以用于通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 505 can be used to provide an audio interface between the user and the electronic device through a speaker, a microphone.
该电源506可以用于给电子设备500的各个部件供电。在一些实施例中,电源506可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power source 506 can be used to power various components of the electronic device 500. In some embodiments, the power source 506 can be logically coupled to the processor 501 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
尽管图8中未示出,电子设备500还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 8, the electronic device 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
本申请实施例还提供一种存储介质,该存储介质存储有计算机程序,当该计算机程序在计算机上运行时,使得该计算机执行上述任一实施例中的应用页面的显示方法,比如:当检测到应用页面的显示指令时,获取应用标识以及目标显示页面的页面标识;将该应用标识以及该页面标识发送配置服务器,并接收该配置服务器根据该应用标识以及该页面标识返回的第一子配置文件,该第一子配置文件用于显示该目标显示页面;缓存该第一子配置文件,加载并运行操作系统中的脚本文件;通过该脚本文件解析该第一子配置文件,生成目标显示页面对应的原生页面,并展示该原生页面。The embodiment of the present application further provides a storage medium storing a computer program, when the computer program is run on a computer, causing the computer to execute the display method of the application page in any of the above embodiments, for example, when detecting Obtaining an application identifier and a page identifier of the target display page when the display instruction of the application page is obtained; sending the application identifier and the page identifier to the configuration server, and receiving the first sub-configuration returned by the configuration server according to the application identifier and the page identifier a file, the first sub-profile is used to display the target display page; the first sub-profile is cached, the script file in the operating system is loaded and run, and the first sub-profile is parsed by the script file to generate a target display page. Corresponding native page and displaying the native page.
在本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM,)、或者随机存取记忆体(Random Access Memory,RAM)等。In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM).
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
需要说明的是,对本申请实施例的应用页面的显示方法而言,本领域普通测试人员可以理解实现本申请实施例的应用页面的显示方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如应用页面的显示方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that, in the display method of the application page of the embodiment of the present application, a general tester in the field can understand all or part of the process of implementing the display method of the application page in the embodiment of the present application, and the related process can be controlled by a computer program. The computer program can be stored in a computer readable storage medium, such as in a memory of the electronic device, and executed by at least one processor in the electronic device, and can include, for example, The flow of an embodiment of a display method of an application page. The storage medium may be a magnetic disk, an optical disk, a read only memory, a random access memory, or the like.
对本申请实施例的应用页面的显示装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the display device of the application page of the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated module, if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .
以上对本申请实施例所提供的一种应用页面的显示方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The display method, the device, the storage medium, and the electronic device of the application page provided by the embodiments of the present application are described in detail. The principles and implementation manners of the application are described in the following examples. The description is only for helping to understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope, in summary, The contents of this specification are not to be construed as limiting the application.

Claims (20)

  1. 一种应用页面的显示方法,应用于电子设备中,其中,包括:An application page display method is applied to an electronic device, including:
    当检测到应用页面的显示指令时,获取应用标识以及目标显示页面的页面标识;Obtaining an application identifier and a page identifier of the target display page when the display instruction of the application page is detected;
    将所述应用标识以及所述页面标识发送配置服务器,并接收所述配置服务器根据所述应用标识以及所述页面标识返回的第一子配置文件,所述第一子配置文件用于显示所述目标显示页面;Sending the application identifier and the page identifier to the configuration server, and receiving the first sub-profile file returned by the configuration server according to the application identifier and the page identifier, where the first sub-profile is used to display the Target display page;
    缓存所述第一子配置文件,加载并运行操作系统中的脚本文件;Caching the first sub-profile, loading and running a script file in the operating system;
    通过所述脚本文件解析所述第一子配置文件,生成目标显示页面对应的原生页面,并展示所述原生页面。Parsing the first sub-profile by the script file, generating a native page corresponding to the target display page, and displaying the native page.
  2. 如权利要求1所述的应用页面的显示方法,其中,所述通过所述脚本文件解析所述第一子配置文件,生成目标显示页面对应的原生页面,并展示所述原生页面之后,还包括:The method for displaying an application page according to claim 1, wherein the parsing the first sub-profile by the script file, generating a native page corresponding to the target display page, and displaying the native page, further including :
    获取目标显示页面对应关联的链接页面的页面标识;Obtaining a page identifier of the linked page corresponding to the target display page;
    将所述链接页面的页面标识发送配置服务器,并接收所述配置服务器根据所述链接页面的页面标识返回的第二子配置文件;Sending a page identifier of the linked page to the configuration server, and receiving a second sub-profile returned by the configuration server according to the page identifier of the linked page;
    缓存所述第二子配置文件。Caching the second sub-profile.
  3. 如权利要求1所述的应用页面的显示方法,其中,所述第一子配置文件包括描述所述目标显示页面的全局配置信息,所述全局配置信息包括目标显示页面的框架元素;The method for displaying an application page according to claim 1, wherein the first sub-profile includes global configuration information describing the target display page, and the global configuration information includes a frame element of the target display page;
    所述通过所述脚本文件解析所述第一子配置文件,生成目标显示页面对应的原生页面,并展示所述原生页面,包括:Parsing the first sub-profile by the script file, generating a native page corresponding to the target display page, and displaying the native page, including:
    通过所述脚本文件解析所述全局配置信息,根据所述框架元素生成目标显示页面对应的原生页面,并展示所述原生页面。Parsing the global configuration information by using the script file, generating a native page corresponding to the target display page according to the frame element, and displaying the native page.
  4. 如权利要求3所述的应用页面的显示方法,其中,所述获取应用标识以及目标显示页面的页面标识之前,还包括:The method for displaying an application page according to claim 3, wherein before the obtaining the application identifier and the page identifier of the target display page, the method further includes:
    对应用的原生页面进行标记,以使得每一原生页面包括一页面标识;Marking the native pages of the application such that each native page includes a page identifier;
    建立页面标识与子配置文件标识的关联表,所述关联表指示每一页面标识对应关联的子配置文件标识。Establishing an association table of the page identifier and the sub-profile identifier, where the association table indicates that each page identifier corresponds to the associated sub-profile identifier.
  5. 如权利要求4所述的应用页面的显示方法,其中,所述将所述应用标识以及所述页面标识发送配置服务器,并接收所述配置服务器根据所述应用标识以及所述页面标识返回的第一子配置文件,包括:The method for displaying an application page according to claim 4, wherein the sending the application identifier and the page identifier to a configuration server, and receiving the first returned by the configuration server according to the application identifier and the page identifier A subprofile, including:
    基于所述应用标识以及所述页面标识匹配所述关联表,得到所述应用标识以及所述页面标识对应关联的子配置文件标识;And the sub-profile identifier corresponding to the application identifier and the page identifier is obtained, according to the application identifier and the page identifier matching the association table;
    将所述应用标识以及所述子配置文件标识发送配置服务器,并接收所述配置服务器根据所述应用标识以及所述子配置文件标识返回的第一子配置文件。And sending the application identifier and the sub-profile identifier to the configuration server, and receiving the first sub-profile returned by the configuration server according to the application identifier and the sub-profile identifier.
  6. 如权利要求1所述的应用页面的显示方法,其中,所述通过所述脚本文件解析所述 第一子配置文件,生成目标显示页面对应的原生页面,并展示所述原生页面之后,还包括:The method for displaying an application page according to claim 1, wherein the parsing the first sub-profile by the script file, generating a native page corresponding to the target display page, and displaying the native page, further including :
    检测是否接收到关闭原生页面的操作指令;Detecting whether an operation instruction to close the native page is received;
    当检测到接收到关闭原生页面的操作指令时,将缓存的所述第一子配置文件删除。The first sub-profile that is cached is deleted when it is detected that an operation instruction to close the native page is received.
  7. 如权利要求1所述的应用页面的显示方法,其中,所述缓存所述第一子配置文件,加载并运行操作系统中的脚本文件,包括:The method for displaying an application page according to claim 1, wherein the caching the first sub-profile, loading and running a script file in an operating system, comprises:
    在存储空间中预设所述第一子配置文件相应的缓存空间;Presetting a corresponding cache space of the first sub-profile in the storage space;
    当接收到第一子配置文件时,将所述第一子配置缓存在所述缓存空间中,加载并运行操作系统中的脚本文件。When the first sub-profile is received, the first sub-configuration is cached in the cache space, and the script file in the operating system is loaded and run.
  8. 一种应用页面的显示装置,其中,包括:A display device for an application page, comprising:
    第一获取单元,用于当检测到应用页面的显示指令时,获取应用标识以及目标显示页面的页面标识;a first acquiring unit, configured to acquire an application identifier and a page identifier of the target display page when the display instruction of the application page is detected;
    第一收发单元,用于将所述应用标识以及所述页面标识发送配置服务器,并接收所述配置服务器根据所述应用标识以及所述页面标识返回的第一子配置文件,所述第一子配置文件用于显示所述目标显示页面;a first transceiver unit, configured to send the application identifier and the page identifier to a configuration server, and receive a first sub-profile that is returned by the configuration server according to the application identifier and the page identifier, the first sub-profile A configuration file is used to display the target display page;
    加载单元,用于缓存所述第一子配置文件,加载并运行操作系统中的脚本文件;a loading unit, configured to cache the first sub-profile, load and run a script file in an operating system;
    生成单元,用于通过所述脚本文件解析所述第一子配置文件,生成目标显示页面对应的原生页面,并展示所述原生页面。And a generating unit, configured to parse the first sub-profile by using the script file, generate a native page corresponding to the target display page, and display the native page.
  9. 如权利要求8所述的应用页面的显示装置,其中,所述装置还包括:The display device of the application page of claim 8, wherein the device further comprises:
    第二获取单元,用于获取目标显示页面对应关联的链接页面的页面标识;a second obtaining unit, configured to acquire a page identifier of a linked page corresponding to the target display page;
    第二收发单元,用于将所述链接页面的页面标识发送配置服务器,并接收所述配置服务器根据所述链接页面的页面标识返回的第二子配置文件;a second transceiver unit, configured to send a page identifier of the linked page to a configuration server, and receive a second sub-profile file returned by the configuration server according to the page identifier of the linked page;
    缓存单元,用于缓存所述第二子配置文件。a cache unit, configured to cache the second sub-profile.
  10. 如权利要求8所述的应用页面的显示装置,其中,所述装置还包括:The display device of the application page of claim 8, wherein the device further comprises:
    标记单元,用于对应用的原生页面进行标记,以使得每一原生页面包括一页面标识;a marking unit, configured to mark a native page of the application such that each native page includes a page identifier;
    建立单元,用于建立页面标识与子配置文件标识的关联表,所述关联表指示每一页面标识对应关联的子配置文件标识。The establishing unit is configured to establish an association table of the page identifier and the sub-profile identifier, where the association table indicates that each page identifier corresponds to the associated sub-profile identifier.
  11. 如权利要求10所述的应用页面的显示装置,其中,所述第一收发单元,包括:The display device of the application page of claim 10, wherein the first transceiver unit comprises:
    匹配子单元,用于基于所述应用标识以及所述页面标识匹配所述关联表,得到所述应用标识以及所述页面标识对应关联的子配置文件标识;a matching sub-unit, configured to match the association table based on the application identifier and the page identifier, to obtain the application identifier and the sub-profile identifier corresponding to the page identifier;
    收发子单元,用于将所述应用标识以及所述子配置文件标识发送配置服务器,并接收所述配置服务器根据所述应用标识以及所述子配置文件标识返回的第一子配置文件。And a transceiver sub-unit, configured to send the application identifier and the sub-profile identifier to the configuration server, and receive the first sub-profile file returned by the configuration server according to the application identifier and the sub-profile identifier.
  12. 如权利要求8所述的应用页面的显示装置,其中,所述加载单元,具体用于:The display device of the application page of claim 8, wherein the loading unit is specifically configured to:
    在存储空间中预设所述第一子配置文件相应的缓存空间;Presetting a corresponding cache space of the first sub-profile in the storage space;
    当接收到第一子配置文件时,将所述第一子配置缓存在所述缓存空间中,加载并运行 操作系统中的脚本文件。When the first sub-profile is received, the first sub-configuration is cached in the cache space, and the script file in the operating system is loaded and run.
  13. 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1所述的应用页面的显示方法。A storage medium having stored thereon a computer program, wherein when the computer program is run on a computer, the computer is caused to execute the display method of the application page according to claim 1.
  14. 一种电子设备,包括处理器和存储器,所述存储器有计算机程序,其中,所述处理器通过调用所述计算机程序,用于执行步骤:An electronic device comprising a processor and a memory, the memory having a computer program, wherein the processor is configured to perform the steps by calling the computer program:
    当检测到应用页面的显示指令时,获取应用标识以及目标显示页面的页面标识;Obtaining an application identifier and a page identifier of the target display page when the display instruction of the application page is detected;
    将所述应用标识以及所述页面标识发送配置服务器,并接收所述配置服务器根据所述应用标识以及所述页面标识返回的第一子配置文件,所述第一子配置文件用于显示所述目标显示页面;Sending the application identifier and the page identifier to the configuration server, and receiving the first sub-profile file returned by the configuration server according to the application identifier and the page identifier, where the first sub-profile is used to display the Target display page;
    缓存所述第一子配置文件,加载并运行操作系统中的脚本文件;Caching the first sub-profile, loading and running a script file in the operating system;
    通过所述脚本文件解析所述第一子配置文件,生成目标显示页面对应的原生页面,并展示所述原生页面。Parsing the first sub-profile by the script file, generating a native page corresponding to the target display page, and displaying the native page.
  15. 如权利要求14所述的电子设备,其中,所述处理器通过调用所述计算机程序,还用于执行步骤:The electronic device of claim 14, wherein said processor is further configured to perform the steps by invoking said computer program:
    获取目标显示页面对应关联的链接页面的页面标识;Obtaining a page identifier of the linked page corresponding to the target display page;
    将所述链接页面的页面标识发送配置服务器,并接收所述配置服务器根据所述链接页面的页面标识返回的第二子配置文件;Sending a page identifier of the linked page to the configuration server, and receiving a second sub-profile returned by the configuration server according to the page identifier of the linked page;
    缓存所述第二子配置文件。Caching the second sub-profile.
  16. 如权利要求14所述的电子设备,其中,所述处理器通过调用所述计算机程序,用于执行步骤:The electronic device of claim 14 wherein said processor is operative to perform the steps by invoking said computer program:
    通过所述脚本文件解析所述全局配置信息,根据所述框架元素生成目标显示页面对应的原生页面,并展示所述原生页面。Parsing the global configuration information by using the script file, generating a native page corresponding to the target display page according to the frame element, and displaying the native page.
  17. 如权利要求16所述的电子设备,其中,所述处理器通过调用所述计算机程序,还用于执行步骤:The electronic device of claim 16 wherein said processor is further operative to perform the steps by invoking said computer program:
    对应用的原生页面进行标记,以使得每一原生页面包括一页面标识;Marking the native pages of the application such that each native page includes a page identifier;
    建立页面标识与子配置文件标识的关联表,所述关联表指示每一页面标识对应关联的子配置文件标识。Establishing an association table of the page identifier and the sub-profile identifier, where the association table indicates that each page identifier corresponds to the associated sub-profile identifier.
  18. 如权利要求17所述的电子设备,其中,所述处理器通过调用所述计算机程序,用于执行步骤:The electronic device of claim 17 wherein said processor is operative to perform the steps by invoking said computer program:
    基于所述应用标识以及所述页面标识匹配所述关联表,得到所述应用标识以及所述页面标识对应关联的子配置文件标识;And the sub-profile identifier corresponding to the application identifier and the page identifier is obtained, according to the application identifier and the page identifier matching the association table;
    将所述应用标识以及所述子配置文件标识发送配置服务器,并接收所述配置服务器根据所述应用标识以及所述子配置文件标识返回的第一子配置文件。And sending the application identifier and the sub-profile identifier to the configuration server, and receiving the first sub-profile returned by the configuration server according to the application identifier and the sub-profile identifier.
  19. 如权利要求14所述的电子设备,其中,所述处理器通过调用所述计算机程序,还 用于执行步骤:The electronic device of claim 14, wherein said processor is further configured to perform the steps by invoking said computer program:
    检测是否接收到关闭原生页面的操作指令;Detecting whether an operation instruction to close the native page is received;
    当检测到接收到关闭原生页面的操作指令时,将缓存的所述第一子配置文件删除。The first sub-profile that is cached is deleted when it is detected that an operation instruction to close the native page is received.
  20. 如权利要求14所述的电子设备,其中,所述处理器通过调用所述计算机程序,用于执行步骤:The electronic device of claim 14 wherein said processor is operative to perform the steps by invoking said computer program:
    在存储空间中预设所述第一子配置文件相应的缓存空间;Presetting a corresponding cache space of the first sub-profile in the storage space;
    当接收到第一子配置文件时,将所述第一子配置缓存在所述缓存空间中,加载并运行操作系统中的脚本文件。When the first sub-profile is received, the first sub-configuration is cached in the cache space, and the script file in the operating system is loaded and run.
PCT/CN2019/073824 2018-02-02 2019-01-30 Display method, device, storage medium and electronic equipment for application page WO2019149207A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810107351.0 2018-02-02
CN201810107351.0A CN108228305A (en) 2018-02-02 2018-02-02 Display methods, device, storage medium and the electronic equipment of five application page

Publications (1)

Publication Number Publication Date
WO2019149207A1 true WO2019149207A1 (en) 2019-08-08

Family

ID=62670414

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/073824 WO2019149207A1 (en) 2018-02-02 2019-01-30 Display method, device, storage medium and electronic equipment for application page

Country Status (2)

Country Link
CN (1) CN108228305A (en)
WO (1) WO2019149207A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11272031B2 (en) * 2020-05-06 2022-03-08 Dell Products L.P. Device configuration using artificial intelligence-based profiling

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228305A (en) * 2018-02-02 2018-06-29 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN109117174B (en) * 2018-07-04 2022-03-29 北京德惠众合信息技术有限公司 System and method compatible with front-end pages of different engines
CN109165050B (en) * 2018-07-05 2020-10-13 腾讯科技(深圳)有限公司 Program running method and device, computing equipment and storage medium
CN109388453B (en) * 2018-09-07 2020-05-12 Oppo广东移动通信有限公司 Application page display method and device, storage medium and electronic equipment
CN109408136B (en) 2018-09-12 2021-06-15 Oppo广东移动通信有限公司 Information processing method, information processing apparatus, storage medium, and electronic device
CN109358936B (en) * 2018-09-29 2021-09-10 Oppo广东移动通信有限公司 Information processing method, device, storage medium, electronic device and system
CN111506846B (en) * 2019-01-30 2023-05-02 杭州海康威视数字技术股份有限公司 Web page generation method and device, electronic equipment and storage medium
CN109902454A (en) * 2019-03-15 2019-06-18 北京邮电大学 Using sensitive information extracting method, device, equipment and readable storage medium storing program for executing
CN110297635B (en) * 2019-06-27 2023-05-16 百度在线网络技术(北京)有限公司 Page display method, device, equipment and storage medium
CN114706621B (en) * 2019-09-26 2023-03-24 华为技术有限公司 Method for starting fast application and related device
CN110990733B (en) * 2019-10-31 2023-03-17 合肥美的电冰箱有限公司 Page loading method and device, electronic equipment and medium
CN113010149B (en) * 2019-12-20 2024-04-05 北京金山云网络技术有限公司 Application loading method and device, user terminal and server
CN111400145B (en) * 2020-03-31 2022-09-09 厦门科灿信息技术有限公司 Configuration method and device of flow chart monitoring page and terminal equipment
CN111679819A (en) * 2020-06-17 2020-09-18 深圳市远云科技有限公司 Method, system and readable storage medium for generating presentation software
CN111767111B (en) * 2020-07-06 2023-05-12 网易(杭州)网络有限公司 Page data processing method and device, electronic equipment and storage medium
CN114090139A (en) * 2020-07-29 2022-02-25 北京字节跳动网络技术有限公司 Page processing method and device, electronic equipment and computer readable storage medium
CN111930382B (en) * 2020-09-21 2021-02-09 浙江口碑网络技术有限公司 Application page access method, device and equipment
CN112230923A (en) * 2020-11-05 2021-01-15 Oppo广东移动通信有限公司 User interface rendering method, user interface rendering device and server
CN112532703B (en) * 2020-11-20 2022-05-27 杭州海康威视数字技术股份有限公司 Page configuration request method and device and electronic equipment
CN113778488B (en) * 2021-09-14 2024-02-06 北京飞讯数码科技有限公司 Page updating method and device, computer equipment and storage medium
CN114116086A (en) * 2021-09-30 2022-03-01 北京市商汤科技开发有限公司 Page editing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070156845A1 (en) * 2005-12-30 2007-07-05 Akamai Technologies, Inc. Site acceleration with content prefetching enabled through customer-specific configurations
CN105988846A (en) * 2015-03-03 2016-10-05 腾讯科技(深圳)有限公司 Page loading method and page loading device
CN106096064A (en) * 2016-07-19 2016-11-09 百度在线网络技术(北京)有限公司 For the method and apparatus generating the page
CN107329743A (en) * 2017-06-14 2017-11-07 北京小米移动软件有限公司 Methods of exhibiting, device and the storage medium of five application page
CN108228305A (en) * 2018-02-02 2018-06-29 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100343802C (en) * 2004-05-10 2007-10-17 华为技术有限公司 Method and system for unifying users'interface
US8849904B2 (en) * 2012-05-17 2014-09-30 Cloudflare, Inc. Incorporating web applications into web pages at the network level
CN104462131A (en) * 2013-09-23 2015-03-25 阿里巴巴集团控股有限公司 Method and device for processing information issuing page
CN104156406B (en) * 2014-07-29 2016-05-25 腾讯科技(深圳)有限公司 The embedded page display method of application program and device
CN104462567B (en) * 2014-12-26 2018-01-09 北京奇虎科技有限公司 The switching method and apparatus of web page and the comprehensive page provide device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070156845A1 (en) * 2005-12-30 2007-07-05 Akamai Technologies, Inc. Site acceleration with content prefetching enabled through customer-specific configurations
CN105988846A (en) * 2015-03-03 2016-10-05 腾讯科技(深圳)有限公司 Page loading method and page loading device
CN106096064A (en) * 2016-07-19 2016-11-09 百度在线网络技术(北京)有限公司 For the method and apparatus generating the page
CN107329743A (en) * 2017-06-14 2017-11-07 北京小米移动软件有限公司 Methods of exhibiting, device and the storage medium of five application page
CN108228305A (en) * 2018-02-02 2018-06-29 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11272031B2 (en) * 2020-05-06 2022-03-08 Dell Products L.P. Device configuration using artificial intelligence-based profiling

Also Published As

Publication number Publication date
CN108228305A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
WO2019149207A1 (en) Display method, device, storage medium and electronic equipment for application page
US20210191996A1 (en) Method for displaying application page, non-transitory storage medium and electronic device
US10846460B2 (en) Method and apparatus for launching application page, and electronic device
WO2019157894A1 (en) Application page display method and apparatus, storage medium and electronic device
WO2019149026A1 (en) Method and device for generating link for application page, storage medium, and electronic apparatus
WO2019157880A1 (en) Method and device for generating link for application page, storage medium, and electronic apparatus
US20210216700A1 (en) Information Processing Method and System
TWI690812B (en) Method, device and client for dynamic layout of page elements
US10705780B2 (en) Method, device, and storage medium for displaying application page
WO2019157860A1 (en) Method and device for launching application interface, storage medium, and electronic apparatus
US11681655B2 (en) Method and apparatus for opening file, and electronic device
US20180285471A1 (en) Page caching method and apparatus
CN108287918B (en) Music playing method and device based on application page, storage medium and electronic equipment
US11706331B2 (en) Information processing method and apparatus, storage medium, and electronic device
US20150091935A1 (en) Method and device for browsing web under weak light with mobile terminal browser
CN108345478B (en) Application processing method and device, storage medium and electronic equipment
WO2020206691A1 (en) Application processing method and apparatus, storage medium, and electronic device
US20190213241A1 (en) Web page display method and apparatus, mobile terminal, and storage medium
CN108334330B (en) Application unloading method and device, storage medium and electronic equipment
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
US10713414B2 (en) Web page display method, terminal, and storage medium
CN108563476B (en) Application program running method and device, storage medium and electronic equipment
CN111538922B (en) Link jump method, application client, device and storage medium
WO2021057390A1 (en) Method for launching quick application, and related device
CN110489679B (en) Browser kernel processing method and device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19747487

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19747487

Country of ref document: EP

Kind code of ref document: A1