WO2018077085A1 - Application processing method, device and storage medium - Google Patents
Application processing method, device and storage medium Download PDFInfo
- Publication number
- WO2018077085A1 WO2018077085A1 PCT/CN2017/106654 CN2017106654W WO2018077085A1 WO 2018077085 A1 WO2018077085 A1 WO 2018077085A1 CN 2017106654 W CN2017106654 W CN 2017106654W WO 2018077085 A1 WO2018077085 A1 WO 2018077085A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- sub
- page
- processing unit
- layer processing
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/547—Messaging middleware
Definitions
- the embodiments of the present invention relate to the field of computer technologies, and in particular, to an application processing method, apparatus, and storage medium.
- An application is a sequence of coded instructions that can be executed by a terminal having information processing capabilities, such as a computer, to obtain a result, or a sequence of symbolized instructions or symbolic statements that can be automatically converted into a sequence of coded instructions.
- a terminal having information processing capabilities, such as a computer, to obtain a result, or a sequence of symbolized instructions or symbolic statements that can be automatically converted into a sequence of coded instructions.
- users can install various applications on the terminal, such as a photo application, a social application, or a mail application, so that various functions such as a photographing function, a social function, or an email can be implemented through the applications installed on the terminal. Management functions, etc.
- the embodiment of the present invention provides an application processing method and device, and the technical solution of the embodiment of the present invention is implemented as follows:
- An embodiment of the present invention provides an application processing method, including:
- Run sub-application page logic code through sub-application logic layer processing unit Obtaining page data, and passing the page data to the sub-application view layer processing unit; wherein the sub-application logic layer processing unit is created by the parent application;
- a page style file is obtained by the sub-application view layer processing unit, and the sub-application page is rendered according to the page data, the page style file, and the common component.
- An embodiment of the present invention provides an application processing apparatus, including:
- One or more memories are One or more memories
- One or more processors among them,
- the one or more memories storing one or more instruction modules configured to be executed by the one or more processors;
- the one or more instruction modules include:
- a view layer module configured to parse the sub-application page configuration file by the sub-application view layer processing unit to obtain a common component provided by the parent application; wherein the sub-application view layer processing unit is operated by the operation Created by the parent application on the system;
- a logic layer module configured to: obtain, by the sub-application logic layer processing unit, the sub-application page logic code to obtain page data, and pass the page data to the sub-application view layer processing unit; wherein the sub-application a logical layer processing unit is created by the parent application;
- the view layer module is further configured to acquire a page style file by using the sub-application view layer processing unit, and render the sub-application page according to the page data, the page style file, and the common component.
- Embodiments of the present invention also provide a non-transitory computer readable storage medium storing computer readable instructions that enable at least one processor to perform the above method.
- FIG 1 is an application environment diagram of an application processing system in an embodiment
- FIG. 2 is a schematic diagram showing the internal structure of a terminal in an embodiment
- FIG. 3 is a schematic flow chart of an application processing method in an embodiment
- FIG. 4 is a schematic diagram showing the relationship between an operating system, a parent application, a sub-application view layer processing unit, and a sub-application logic layer processing unit in one embodiment
- FIG. 5 is a schematic flowchart of steps of creating a sub-application logic layer processing unit and a corresponding sub-application view layer processing unit by a parent application running on an operating system in one embodiment
- FIG. 6 is a flow diagram showing the steps of processing a sub-application view layer through a sub-application view layer processing unit and rendering sub-application pages according to page data and common components;
- FIG. 7 is a flow diagram showing the steps of responding to an event triggered by a common component in a sub-application page in one embodiment
- Figure 8 is a block diagram showing the structure of an application processing device in an embodiment
- Figure 9 is a block diagram showing the structure of an application processing apparatus in another embodiment.
- the inventor finds that the user needs to download the application installation package from the network first, decompress the application installation package on the terminal, and place the decompressed various files into the specified installation directory. Next, register the application in the operating system and generate an icon for the application, and subsequent users can click the icon to launch the application and use it. Therefore, the installation and use of the current application requires a series of time-consuming steps, which is very cumbersome, resulting in low efficiency of the application.
- the embodiment of the present invention provides an application processing method, which can effectively improve the usage efficiency of the application.
- the application processing system includes a terminal 110 and a server 120.
- the server 120 stores a sub-application global logic file, a sub-application global configuration file, a sub-application page configuration file, and a page style file corresponding to the sub-application identifier.
- the operating system runs on the terminal 110, and the parent application is run on the operating system.
- the terminal 110 implements an application processing method through the parent application to implement the sub-application page through the parent application.
- the terminal 110 may specifically create a sub-application logic layer processing unit and a corresponding sub-application view layer processing unit through the parent application; obtain the sub-application view layer processing unit and obtain the content provided by the parent application according to the sub-application page configuration file.
- Common component run the sub-application page logic code through the sub-application logic layer processing unit to get the page data, and pass the page data to the sub-application view layer processing unit; through the sub-application view layer processing unit and according to the page data and the public
- the component renders the sub-application page.
- FIG. 2 is a schematic diagram showing the internal structure of a terminal in an embodiment.
- the terminal includes a processor connected through a system bus, a non-volatile storage medium, an internal memory, a network interface, a display screen, and an input device.
- the non-volatile storage medium of the terminal stores an operating system, and an application processing device is also stored, and the application processing device is used to implement an application processing method.
- the processor of the terminal is used to provide computing and control capabilities to support the operation of the entire terminal.
- the internal memory in the terminal provides an environment for the operation of the application processing device in the non-volatile storage medium.
- the internal memory can store computer readable instructions that, when executed by the processor, cause the processor to perform an application processing method.
- the network interface of the terminal is used for network communication with the server, such as downloading a sub-application page configuration file corresponding to the sub-application identifier.
- the display screen of the terminal may be a liquid crystal display or an electronic ink display screen, and the input device of the terminal may be a touch layer covered on the display screen, or a button, a trackball or a touchpad provided on the terminal housing, or may be an external connection. Keyboard, trackpad or mouse.
- the terminal can be a personal computer or a mobile terminal, such as a mobile phone, a tablet, a personal digital assistant, or a wearable device. It will be understood by those skilled in the art that the structure shown in FIG.
- FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the terminal to which the solution of the present application is applied.
- the specific terminal may include a ratio. More or fewer components are shown in Figure 2, or some components are combined, or have different component arrangements.
- FIG. 3 is a schematic flow chart of an application processing method in an embodiment. This embodiment is exemplified by applying the method to the terminal 110 in FIG. 1 described above. Referring to FIG. 3, the method specifically includes the following steps:
- the terminal creates a sub-application logic layer processing unit and a corresponding sub-application view layer processing unit through a parent application running on the operating system.
- the operating system is run on the terminal and the parent application is run on the operating system.
- the parent application provides an environment for the operation of the child application, creating a sub-application logic layer processing unit for implementing the sub-application and a corresponding sub-application view layer processing unit.
- the sub-application view layer processing unit is used for the view of the sub-application.
- the sub-application logic layer processing unit is used to process the interaction logic of the sub-application.
- the processing unit may specifically be a process or a thread, such as a sub-application logic layer thread and a corresponding sub-application view layer thread.
- the sub-application logic layer processing unit can be run in a virtual machine, and the sub-application view layer processing unit can be implemented by a browser control.
- the operating system is a computer program that manages and controls the hardware and software resources of the terminal. It is the most basic system software that runs directly on the bare metal of the terminal. The application needs to run under the support of the operating system.
- the operating system can be a desktop operating system such as a Windows (Windows) operating system or a Linux operating system or a Mac OS (Apple desktop operating system), or a mobile terminal operation such as an iOS (Apple mobile terminal operating system) or an Android (Android) operating system. system.
- a parent application is an application that hosts a child application, providing an environment for the implementation of the child application.
- the parent application is a native application.
- Native applications are applications that run directly on the operating system.
- the parent application can be a social application, a dedicated application that specifically supports the sub-application, a file management application, a mail application, or a game application.
- Social applications include instant messaging applications, SNS (Social Network Service) applications, or live applications.
- a sub-application is an application that can be implemented in the environment provided by the parent application.
- the sub-application may specifically be a social application, a file management application, a mail application, or a game application.
- the terminal may obtain the sub-application identification through the parent application and create a sub-application logic layer processing unit and a corresponding sub-application view layer processing unit.
- the sub-application ID is used to identify the corresponding sub-application.
- the sequential logical layer processing unit may have a one-to-one correspondence with the sub-application identifier; thus, a sub-application may have only one sub-application logical layer processing unit for processing the interaction logic of the entire sub-application.
- the sub-application view layer processing unit can have a many-to-one relationship with the sub-application identifier, and has a one-to-one correspondence with the sub-application page identifier corresponding to the sub-application identifier; thus, a sub-application can have multiple sub-applications.
- Application view layer processing unit, each sub-application view layer processing unit can be used to maintain a sub-application page.
- the terminal may obtain a sub-application page configuration file corresponding to the sub-application identifier through the parent application, thereby obtaining a common component from the common component library provided by the parent application according to the content configured in the sub-application page configuration file.
- the sub-application page configuration file can be obtained from the local or server.
- a sub-application page configuration file is a file that configures the pages rendered by a sub-application.
- the sub-application page configuration file can be source code or a file obtained by compiling the source code.
- the page rendered by the sub-application is called a sub-application page, and the sub-application can include one or more sub-application pages.
- the terminal may determine the corresponding folder locally or by the server according to the sub-application identifier, and then obtain the sub-application page configuration file from the folder. Or the terminal may obtain a sub-application page configuration file corresponding to the sub-application identifier according to the correspondence between the sub-application identifier and the sub-application page identifier.
- the sub-application page identifier is used to uniquely identify a sub-application page included in a sub-application, and different sub-applications can use the same sub-application page identifier.
- the terminal when the sub-application includes a sub-application page, and there is only one corresponding sub-application page configuration file, the terminal can directly obtain a sub-application page configuration uniquely corresponding to the sub-application identification. file.
- the terminal may obtain a default sub-application page configuration file corresponding to the sub-application identifier. Or a sub-application page configuration file corresponding to the sub-application ID and corresponding to the specified sub-application page identifier.
- the specified sub-application page identifier may be specified by the server, or may be specified by the terminal according to a user operation.
- the terminal obtains the sub-application page logic code from the sub-application page logic code file corresponding to the sub-application identifier and runs through the sub-application logic layer processing unit, and generates when the sub-application page logic code is run.
- the page data can be passed to the sub-application view layer processing unit either directly by the sub-application logic layer processing unit or by a relay method.
- the page data is the data required to render the sub-application page.
- the page data may be the initial data of the page defined in the logic code of the sub-application page, or may be data pulled from the storage location specified by the sub-application page logic code, or may be passed to the sub-application view layer processing unit. The data generated after the event is processed.
- the terminal may acquire default component style data that is provided by the common component, thereby organizing the common component according to the default component style data, and applying the page data to the common component and rendering to form a sub-application page.
- the default component style data is data that describes the default presentation of the corresponding public component.
- the default component style data can include attributes such as location, size, color, font, and font size of the corresponding common component by default in the sub-application page.
- the terminal can specifically build a sub-application page according to the selected common component through the browser control integrated by the parent application.
- the page data can be data that the public component needs to display, such as list data or button names.
- the parent application is run on the operating system, the parent application creates the sub-application logic layer processing unit and the corresponding sub-application view layer processing unit, and the sub-application logic layer processing unit runs the sub-application page logic code.
- the sub-application view layer processing unit can obtain the common component provided by the parent application according to the sub-application page configuration file, and render the sub-application page according to the page data and the common component.
- the common application component provided by the parent application and the sub-application page logic code can be used to construct the sub-application page, which improves the application efficiency and shortens the application installation time.
- sub-application logic layer processing unit and the corresponding sub-application view layer processing unit separate the view layer and the logical layer of the application, and the sub-application page configuration file and the sub-application page logic code can be updated and used separately, which is more convenient. Sub-application implementation and maintenance.
- step S302 specifically includes: parsing the sub-application page configuration file by the sub-application view layer processing unit to obtain a common component identifier; and acquiring, in the common component library provided by the parent application, the public component identifier Common component.
- the common component identifier is used to uniquely identify the corresponding common component.
- the public component is a component provided by the parent application that can be shared by different sub-applications. It has a visual form and is a component of the sub-application page.
- the common component can also be packaged with logic code for handling events triggered for the common component.
- Different sub-applications share common components, which can be called the same common component at the same time or at different times.
- the common component can also be shared by the parent application and the child application.
- the common component library is a collection of common components provided by the parent application. Each common component in the common component library has a unique common component identity.
- the common component library can be downloaded from the server to the local by the parent application at runtime, or can be decompressed from the corresponding application installation package when the parent application is installed.
- the parent application provides a common component library
- the sub-application view layer processing unit parses the sub-application page configuration file to obtain the required common components from the common component library, and the application page configuration file itself does not need to be It includes common components, which can quickly build sub-application pages by using sub-application page configuration files and common component libraries provided by the parent application, further improving application efficiency and shortening application installation time.
- creating a sub-application logic layer processing unit and a corresponding sub-application view layer processing unit by a parent application running on an operating system specifically includes the following steps:
- the terminal can obtain the sub-application ID by running the parent application on the operating system and according to the sub-application usage record or the user's selection operation of the sub-application. For example, get the sub-application ID corresponding to the last used sub-application.
- the terminal may display a list of sub-applications through the parent application, receive a selection instruction for an option in the sub-application list, and determine an option selected in the sub-application list according to the selection instruction, thereby obtaining the selected option.
- the corresponding sub-application ID may be displayed a list of sub-applications through the parent application, receive a selection instruction for an option in the sub-application list, and determine an option selected in the sub-application list according to the selection instruction, thereby obtaining the selected option.
- the corresponding sub-application ID may be displayed a list of sub-applications through the parent application, receive a selection instruction for an option in the sub-application list, and determine an option selected in the sub-application list according to the selection instruction, thereby obtaining the selected option.
- each option in the list of sub-applications represents a sub-application, and the options may be in the form of graphics and/or text.
- the sub-application list can be a list of all existing sub-applications on the server, or a list of sub-applications filtered from all existing sub-applications on the server according to specified conditions, or A list of sub-applications that have been downloaded to the local.
- the sub-application list can include one or more options.
- the condition according to the screening sub-application may be a condition set by the server, or may be a condition input by the user.
- the condition can be a sort condition, a keyword matching query condition, or a pre-category query condition.
- the sorting condition is, for example, a condition for sorting according to the posting time, download amount, or name of the sub-application.
- the keyword matching query condition is a condition for querying a sub-application that matches the keyword that the terminal is input.
- the pre-categorization query condition is a condition for querying the classification of the sub-application in advance by the server, such as querying the conditions of the sub-application of the office class, the game class, or the social class.
- the sub-application global logic file is a file that configures the interaction logic of the entire sub-application, and the interaction logic of the entire sub-application, such as logic for managing each sub-application page of the sub-application, or the startup of the sub-application And off logic, etc.
- Sub-application global logic files can be read locally or downloaded from the server, and local sub-application global logic files can be downloaded from the server and stored locally beforehand.
- the terminal may create a corresponding sub-application logic layer processing unit through the parent application according to the sub-application global logic file, and execute the sub-application global in the sub-application global logic file by the sub-application logic layer processing unit.
- Logic code Subsequent sub-application page logic code is also run by the sub-application logic layer processing unit.
- the terminal may obtain a sub-application global configuration file corresponding to the sub-application identifier from the local application through the parent application.
- the terminal may also send the sub-application identifier to the server through the parent application, and receive the sub-application global configuration file corresponding to the sub-application identifier fed back by the server.
- the sub-application global configuration file is a file for configuring the corresponding sub-application as a whole, and the configurable sub-application page configuration Sub-application global configuration information such as the path to the file, the sub-application window representation, and the network timeout threshold for the sub-application.
- the terminal may parse the sub-application global configuration file by using the parent application to obtain sub-application global configuration information, where the sub-application global configuration information includes a path of the sub-application page configuration file.
- the terminal can locate the corresponding sub-application page configuration file according to the obtained path through the parent application, and obtain the sub-application page configuration file.
- the terminal can apply the obtained sub-application global configuration information.
- the terminal may obtain the corresponding and default sub-application page configuration file from the sub-application global configuration file, or obtain the corresponding sub-application page configuration file specified according to the user operation.
- the path may be a server or a local path, and may be an absolute or a relative path.
- the sub-application global configuration information may also include a sub-application window representation and a sub-application's network timeout threshold, which may be applied to all sub-application pages included in the corresponding sub-application.
- the terminal may create a sub-application view layer processing unit corresponding to the sub-application page configuration file through the parent application.
- the terminal can subsequently obtain the common component provided by the parent application through the sub-application view layer processing unit and according to the sub-application page configuration file.
- the corresponding sub-application logic layer processing unit is created according to the sub-application global logic file
- the sub-application view layer processing unit is created according to the sub-application page configuration file specified by the sub-application global configuration file, which is convenient. Global management of the entire sub-application and management of each sub-application page.
- FIG. 6 is a schematic flowchart of step S306 in an embodiment. Referring to FIG. 6, step S306 specifically includes the following steps:
- each sub-application page configuration file there is a corresponding page style file, which can be obtained from a local or server, and configured to display a display form of the corresponding sub-application page.
- the page style file may include component style data corresponding to the common component identifier, and may also include page overall style data of the sub-application page.
- the component style data may include at least one of attributes such as position, size, color, font, and font size of the corresponding common component in the sub-application page to which it belongs.
- the page overall style data may include at least one of a page size of the corresponding sub-application page and an attribute such as a page background color.
- the terminal may obtain a page style file corresponding to the sub-application page configuration file by using the sub-application view layer processing unit, and obtain component style data corresponding to the common component identifier, and the component style data and the common component may pass the component.
- the identifier corresponds so that when the child application page is built from the common component, the component style data corresponding to the common component is applied to the common component.
- the terminal renders the common component of the component style data and the corresponding page data to obtain the sub-application page.
- a differentiated presentation manner can be implemented for different sub-applications and different sub-application pages, which enables the sub-application to reach the native application.
- the program has a consistent user experience and is much lighter than native applications.
- the application processing method further includes the step of responding to an event triggered by a common component in the sub-application page.
- the pair of sub-applications The step of responding to the event triggered by the common component in the sequence page specifically includes the following steps:
- the terminal may detect or listen to events triggered by the common component in the sub-application page in the sub-application page through the sub-application view layer processing unit.
- the event triggered by the common component is the event triggered by the operation of the common component. Among them, the event is used to describe the operation that occurs in the sub-application page.
- Events can be divided into multiple event types, such as touch events, form submission events, input events, or scroll events. Touch events such as a start touch event, a touch move event, a touch cancel event, a touch end event, and an event that touches a preset duration. Events can be passed to the sub-application logic layer processing unit either directly by the sub-application view layer processing unit or through a relay.
- the terminal determines the event type of the event, and then matches the event type in the sub-application page logic code.
- the logic code processes the event and gets the corresponding event response data.
- the event may carry a corresponding common component identifier, and the terminal may use the logic code corresponding to the common component identifier in the sub-application page logic code and corresponding to the event type of the event to process the event, and obtain corresponding event response data.
- the event can also carry data, and when the terminal processes the event through the parent application, the data carried by the event can be processed into the sub-application page logic code.
- S706 The sub-application view layer processing unit and the sub-application page are updated according to the event response data.
- the terminal may re-render through the sub-application view layer processing unit and according to common components and event response data in the sub-application page to obtain an updated sub-application page.
- the event in the sub-application page is obtained by the sub-application view layer processing unit, and the sub-application logic layer processing unit responds to the event, and then re-renders through the sub-application view layer processing unit to update the sub-application.
- Program page, event acquisition and event response data rendering are separated from event processing logic, further improving the convenience of sub-application implementation and maintenance.
- step S704 specifically includes: processing the unit through the sub-application logic layer and invoking an application programming interface response event provided by the parent application according to the sub-application page logic code.
- the parent application provides a library of application programming interfaces that include a rich application programming interface (API).
- the terminal can process the unit through the sub-application logic layer processing unit and select an application programming interface required to respond to the event in the application programming interface library according to the sub-application page logic code, thereby processing the event through the selected application programming interface. , get event response data.
- the application programming interface can be used for network operations, data processing, media operations, operating terminal hardware, or operating sub-application pages.
- the sub-application page logic code can record the correspondence between the event type and the application programming interface, or the correspondence between the event type, the common component identifier, and the application programming interface, so that the terminal can process the unit through the sub-application logic layer and according to The corresponding relationship recorded in the sub-application page logic code selects the application programming interface required to process the event in the application programming interface library.
- the application programming interface provided by the parent application implements processing of the triggered event in the sub-application page
- the sub-application page logic code is configured to configure the call to the application programming interface provided by the parent application.
- step S704 specifically includes: processing the unit through the sub-application logic layer and invoking an application programming interface response event provided by the operating system according to the sub-application page logic code.
- the application programming interface provided by the operating system is directly called by the parent application to process the event, so that the implementation of the sub-application is more lightweight.
- step S704 specifically includes: processing the unit through the sub-application logic layer and calling the application programming interface provided by the parent application according to the sub-application page logic code, and programming through the application provided by the parent application.
- the interface calls the application programming interface provided by the operating system to respond to events.
- the application programming interface provided by the parent application may be a package of an application programming interface provided by the operating system, and an application programming interface provided by the parent application may be one or more applications provided by the operating system.
- the terminal invokes the application programming interface provided by the parent application through the sub-application logic layer processing unit, and then invokes the application programming interface provided by the operating system to pass the event to the operating system for processing, and obtain corresponding event response data.
- the parent application processes the event triggered in the sub-application page through the application programming interface provided by the operating system, and the parent application load can be alleviated compared to completely processing the event by the parent application.
- the sub-application page configuration file is written in a markup language; the sub-application page logic code is written in a scripting language; the sub-application logic layer processing unit and the sub-application view layer processing unit are provided by the parent application
- the native interface performs relay communication.
- Markup Language is a combination of text and other information related to text, showing computer text encoding about document structure and data processing details.
- the sub-application page configuration file can be in HTML, XML, or a custom markup language based on XML extensions.
- Scripting language such as JavaScript or VBScript.
- the native interface is an interface supported locally by the operating system, such as JavascriptBridge. In the Android operating system, native interfaces belong to the local framework and are written in C and/or C++.
- the sub-application page configuration file is written in a markup language, so that the editing of the sub-application page configuration file is intuitive and convenient.
- the sub-application page logic code is written in a scripting language to facilitate the implementation of sub-application logic.
- the sub-application logic layer processing unit and the sub-application view layer processing unit in different computer languages can communicate normally.
- FIG. 8 is a block diagram showing the structure of an application processing apparatus 800 in one embodiment.
- the application processing apparatus 800 includes: one or more memories; one or more processors; wherein the one or more memories store one or more instruction modules configured by the one or Executing by one or more processors; wherein the one or more instruction modules include: a view layer module 802 and a logic layer module 803.
- the view layer module 802 is configured to obtain a common component provided by the parent application according to the sub-application view layer processing unit according to the sub-application page configuration file; the sub-application view layer processing unit is executed by the parent application running on the operating system Created.
- the logic layer module 803 is configured to obtain the page data by running the sub-application page logic code through the sub-application logic layer processing unit, and pass the page data to the sub-application view layer processing unit; the sub-application logic layer processing unit is configured by the parent application The program was created.
- the view layer module 802 is also used to process the unit through the sub-application view layer and render the sub-application page according to the page data and the common component.
- the application processing device 800 the parent application is run on the operating system, the parent application creates the sub-application logic layer processing unit and the corresponding sub-application view layer processing unit, and the sub-application logic layer processing unit runs the sub-application page logic.
- Code To get the page data the sub-application view layer processing unit can obtain the common component provided by the parent application according to the sub-application page configuration file, and render the sub-application page according to the page data and the common component. In this way, when the parent application is running, the common application component provided by the parent application and the sub-application page logic code can be used to construct the sub-application page, thereby improving the application efficiency.
- sub-application logic layer processing unit and the corresponding sub-application view layer processing unit separate the view layer and the logical layer of the application, and the sub-application page configuration file and the sub-application page logic code can be updated and used separately, which is more convenient. Sub-application implementation and maintenance.
- the application processing apparatus 800 further includes a processing unit management module 801 for creating a sub-application logic layer processing unit and a corresponding sub-application by a parent application running on the operating system.
- Program view layer processing unit for creating a sub-application logic layer processing unit and a corresponding sub-application by a parent application running on the operating system.
- the processing unit management module 801 is further configured to acquire a sub-application identifier by using a parent application running on the operating system; acquire a sub-application global logic file corresponding to the sub-application identifier; and globally according to the sub-application
- the logical file creates a sub-application logical layer processing unit; obtains a sub-application global configuration file corresponding to the sub-application identifier; acquires a sub-application page configuration file specified by the sub-application global configuration file; and according to the sub-application page configuration file Create a sub-application view layer processing unit.
- the corresponding sub-application logic layer processing unit is created according to the sub-application global logic file
- the sub-application view layer processing unit is created according to the sub-application page configuration file specified by the sub-application global configuration file, which is convenient. Global management of the entire sub-application and management of each sub-application page.
- the view layer module 802 is further configured to parse the sub-application page configuration file by using the sub-application view layer processing unit to obtain the common component identifier; and obtain the common component in the common component library provided by the parent application. Identifies the corresponding public component.
- the parent application provides a common component library
- the sub-application view layer processing unit parses the sub-application page configuration file to obtain the required common components from the common component library, and the application page configuration file itself does not need to be It includes common components, which can quickly build sub-application pages by using sub-application page configuration files and common component libraries provided by the parent application, further improving application efficiency and shortening application installation time.
- the view layer module 802 is further configured to obtain a page style file by using a sub-application view layer processing unit; and obtain component style data corresponding to the common component from the page style file; according to the page data, the common component, and the component style The data renders the sub-application page.
- a differentiated presentation manner can be implemented for different sub-applications and different sub-application pages, which enables the sub-application to reach the native application.
- the program has a consistent user experience and is much lighter than native applications.
- the view layer module 802 is further configured to: acquire, by the sub-application view layer processing unit, an event triggered by a common component in the sub-application page, and pass the event to the sub-application logic layer processing unit; the logic layer The module 803 is further configured to process the unit through the sub-application logic layer and respond to the event according to the sub-application page logic code, and deliver the corresponding event response data to the sub-application view layer processing unit; the view layer module 802 is also used to pass the sub- The application view layer handles the unit and updates the sub-application page based on the event response data.
- the event in the sub-application page is obtained by the sub-application view layer processing unit, and the sub-application logic layer processing unit responds to the event, and then re-renders through the sub-application view layer processing unit to update the sub-application.
- Program page, event acquisition and event response data rendering are separated from event processing logic, further improving the convenience of sub-application implementation and maintenance.
- the logic layer module 803 is further configured to process the unit through the sub-application logic layer and invoke the application programming interface response event provided by the parent application based on the sub-application page logic code.
- the application programming interface provided by the parent application implements processing of the triggered event in the sub-application page
- the sub-application page logic code is configured to configure the call to the application programming interface provided by the parent application.
- the logic layer module 803 is further configured to process the unit through the sub-application logic layer and invoke an application programming interface response event provided by the operating system according to the sub-application page logic code.
- the application programming interface provided by the operating system is directly called by the parent application to process the event, so that the implementation of the sub-application is more lightweight.
- the logic layer module 803 is further configured to process the unit through the sub-application logic layer and invoke the application programming interface provided by the parent application according to the sub-application page logic code, and through the application provided by the parent application.
- the programming interface invokes an application programming interface provided by the operating system to respond to events.
- the parent application processes the event triggered in the sub-application page through the application programming interface provided by the operating system, and the parent application load can be alleviated compared to completely processing the event by the parent application.
- the sub-application page configuration file is written in a markup language; the sub-application page logic code is written in a scripting language; the sub-application logic layer processing unit and the sub-application view layer processing unit are provided by the parent application
- the native interface performs relay communication.
- the sub-application page configuration file is written in a markup language, so that the editing of the sub-application page configuration file is intuitive and convenient.
- the sub-application page logic code is written in a scripting language to facilitate the implementation of sub-application logic.
- the sub-application logic layer processing in different computer languages Units and sub-application view layer processing units can communicate normally.
- the parent application is run on the operating system, the parent application creates a sub-application logic layer processing unit and a corresponding sub-application view layer processing unit, and the sub-application logic layer processing unit runs the sub-application page
- the logic code obtains page data
- the sub-application view layer processing unit may acquire a common component provided by the parent application according to the sub-application page configuration file, and render the sub-application page according to the page data and the common component.
- the common application component provided by the parent application and the sub-application page logic code can be used to construct the sub-application page, thereby improving the application efficiency.
- sub-application logic layer processing unit and the corresponding sub-application view layer processing unit separate the view layer and the logical layer of the application, and the sub-application page configuration file and the sub-application page logic code can be updated and used separately, which is more convenient. Sub-application implementation and maintenance.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.
- an embodiment of the present invention further provides a storage medium in which a data processing program is stored, and the data processing program is used to execute any one of the foregoing methods of the embodiments of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Provided is an application processing method and a device. The application processing method comprises: parsing a sub-application page configuration file through a sub-application view layer processing unit to obtain a common component provided by a mother application, the sub-application view layer processing unit being created by the mother application running on an operating system (S302); through the sub-application logic layer processing unit, running a logic code of a sub-application page to obtain page data, and transmitting the page data to the sub-application view layer processing unit, the sub-application logic layer processing unit being created by the mother application (S304); and obtaining a page style file through the sub-application view layer processing unit, and rendering the sub-application page according to the page data, the page style file and the common component (S306).
Description
本申请要求于2016年10月28日提交中国专利局、申请号为201610972476.0、发明名称为“应用程序处理方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application, which is hereby incorporated by reference in its entirety in its entirety in its entirety in the the the the the the the the the the the the
本发明实施例涉及计算机技术领域,特别是涉及一种应用程序处理方法、装置及存储介质。The embodiments of the present invention relate to the field of computer technologies, and in particular, to an application processing method, apparatus, and storage medium.
背景background
应用程序是为了得到某种结果而可以由计算机等具有信息处理能力的终端执行的代码化指令序列,或者可以被自动转换成代码化指令序列的符号化指令序列或者符号化语句序列。目前,用户可以在终端上安装各种应用程序,如拍照应用程序、社交应用程序或者邮件应用程序等,从而通过终端上安装的这些应用可以实现各种功能,如拍照功能、社交功能或者电子邮件管理功能等。An application is a sequence of coded instructions that can be executed by a terminal having information processing capabilities, such as a computer, to obtain a result, or a sequence of symbolized instructions or symbolic statements that can be automatically converted into a sequence of coded instructions. Currently, users can install various applications on the terminal, such as a photo application, a social application, or a mail application, so that various functions such as a photographing function, a social function, or an email can be implemented through the applications installed on the terminal. Management functions, etc.
技术内容Technical content
本发明实施例提供一种应用程序处理方法和装置,本发明实施例的技术方案是这样实现的:The embodiment of the present invention provides an application processing method and device, and the technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供一种应用程序处理方法,包括:An embodiment of the present invention provides an application processing method, including:
通过子应用程序视图层处理单元解析子应用程序页面配置文件,以获取由所述母应用程序提供的公共组件;其中,所述子应用程序视图层处理单元由运行于操作系统上的母应用程序所创建;Parsing the sub-application page configuration file through the sub-application view layer processing unit to obtain a common component provided by the parent application; wherein the sub-application view layer processing unit is run by a parent application running on the operating system Created
通过子应用程序逻辑层处理单元运行子应用程序页面逻辑代码
得到页面数据,并将所述页面数据传递至所述子应用程序视图层处理单元;其中,所述子应用程序逻辑层处理单元由所述母应用程序所创建;Run sub-application page logic code through sub-application logic layer processing unit
Obtaining page data, and passing the page data to the sub-application view layer processing unit; wherein the sub-application logic layer processing unit is created by the parent application;
通过所述子应用程序视图层处理单元获取页面样式文件,并根据所述页面数据、所述页面样式文件和所述公共组件渲染子应用程序页面。A page style file is obtained by the sub-application view layer processing unit, and the sub-application page is rendered according to the page data, the page style file, and the common component.
本发明实施例提供一种应用程序处理装置,包括:An embodiment of the present invention provides an application processing apparatus, including:
一个或一个以上存储器;One or more memories;
一个或一个以上处理器;其中,One or more processors; among them,
所述一个或一个以上存储器存储有一个或者一个以上指令模块,经配置由所述一个或者一个以上处理器执行;其中,The one or more memories storing one or more instruction modules configured to be executed by the one or more processors; wherein
所述一个或者一个以上指令模块包括:The one or more instruction modules include:
视图层模块,用于通过子应用程序视图层处理单元解析子应用程序页面配置文件,以获取由所述母应用程序提供的公共组件;其中,所述子应用程序视图层处理单元由运行于操作系统上的母应用程序所创建;a view layer module, configured to parse the sub-application page configuration file by the sub-application view layer processing unit to obtain a common component provided by the parent application; wherein the sub-application view layer processing unit is operated by the operation Created by the parent application on the system;
逻辑层模块,用于通过子应用程序逻辑层处理单元运行子应用程序页面逻辑代码得到页面数据,并将所述页面数据传递至所述子应用程序视图层处理单元;其中,所述子应用程序逻辑层处理单元由所述母应用程序所创建;a logic layer module, configured to: obtain, by the sub-application logic layer processing unit, the sub-application page logic code to obtain page data, and pass the page data to the sub-application view layer processing unit; wherein the sub-application a logical layer processing unit is created by the parent application;
所述视图层模块还用于通过所述子应用程序视图层处理单元获取页面样式文件,并根据所述页面数据、所述页面样式文件和所述公共组件渲染子应用程序页面。
The view layer module is further configured to acquire a page style file by using the sub-application view layer processing unit, and render the sub-application page according to the page data, the page style file, and the common component.
本发明实施例还提出了一种非易失性计算机可读存储介质,存储有计算机可读指令,可以使至少一个处理器执行以上方法。Embodiments of the present invention also provide a non-transitory computer readable storage medium storing computer readable instructions that enable at least one processor to perform the above method.
附图简要说明BRIEF DESCRIPTION OF THE 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 examples will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without any creative work. among them,
图1为一个实施例中应用程序处理系统的应用环境图;1 is an application environment diagram of an application processing system in an embodiment;
图2为一个实施例中终端的内部结构示意图;2 is a schematic diagram showing the internal structure of a terminal in an embodiment;
图3为一个实施例中应用程序处理方法的流程示意图;3 is a schematic flow chart of an application processing method in an embodiment;
图4为一个实施例中操作系统、母应用程序、子应用程序视图层处理单元和子应用程序逻辑层处理单元的关系示意图;4 is a schematic diagram showing the relationship between an operating system, a parent application, a sub-application view layer processing unit, and a sub-application logic layer processing unit in one embodiment;
图5为一个实施例中通过运行于操作系统上的母应用程序创建子应用程序逻辑层处理单元和相应的子应用程序视图层处理单元的步骤的流程示意图;5 is a schematic flowchart of steps of creating a sub-application logic layer processing unit and a corresponding sub-application view layer processing unit by a parent application running on an operating system in one embodiment;
图6为一个实施例中通过子应用程序视图层处理单元并根据页面数据和公共组件渲染子应用程序页面的步骤的流程示意图;6 is a flow diagram showing the steps of processing a sub-application view layer through a sub-application view layer processing unit and rendering sub-application pages according to page data and common components;
图7为一个实施例中对子应用程序页面中公共组件所触发的事件进行响应的步骤的流程示意图;7 is a flow diagram showing the steps of responding to an event triggered by a common component in a sub-application page in one embodiment;
图8为一个实施例中应用程序处理装置的结构框图;Figure 8 is a block diagram showing the structure of an application processing device in an embodiment;
图9为另一个实施例中应用程序处理装置的结构框图。
Figure 9 is a block diagram showing the structure of an application processing apparatus in another embodiment.
为了使本发明实施例的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
在实现本发明实施例的过程中,发明人发现目前用户需要先从网络下载应用程序安装包,在终端上将应用程序安装包解压缩,将解压缩出的各种文件放置到指定的安装目录下,在操作系统中注册该应用程序,并生成该应用程序的图标,后续用户就可以点击该图标启动该应用程序并使用。因此,目前应用程序的安装和使用都需要经过一系列耗时较长的步骤,非常繁琐,导致应用程序的使用效率比较低。In the process of implementing the embodiment of the present invention, the inventor finds that the user needs to download the application installation package from the network first, decompress the application installation package on the terminal, and place the decompressed various files into the specified installation directory. Next, register the application in the operating system and generate an icon for the application, and subsequent users can click the icon to launch the application and use it. Therefore, the installation and use of the current application requires a series of time-consuming steps, which is very cumbersome, resulting in low efficiency of the application.
有鉴于此,本发明实施例提供了一种应用程序处理方法,可以有效的提高应用程序的使用效率。In view of this, the embodiment of the present invention provides an application processing method, which can effectively improve the usage efficiency of the application.
图1为一个实施例中应用程序处理系统的应用环境图。参照图1,该应用程序处理系统包括终端110和服务器120。其中,服务器120上存储有与子应用程序标识对应的子应用程序全局逻辑文件、子应用程序全局配置文件、子应用程序页面配置文件和页面样式文件。终端110上运行操作系统,操作系统上运行母应用程序,终端110通过该母应用程序实施应用程序处理方法,以通过该母应用程序实现子应用程序页面。终端110具体可通过母应用程序创建子应用程序逻辑层处理单元和相应的子应用程序视图层处理单元;通过子应用程序视图层处理单元并根据子应用程序页面配置文件获取由母应用程序提供的公共组件;通过子应用程序逻辑层处理单元运行子应用程序页面逻辑代码得到页面数据,并将页面数据传递至子应用程序视图层处理单元;通过子应用程序视图层处理单元并根据页面数据和公共组件渲染子应用程序页面。
1 is an application environment diagram of an application processing system in an embodiment. Referring to FIG. 1, the application processing system includes a terminal 110 and a server 120. The server 120 stores a sub-application global logic file, a sub-application global configuration file, a sub-application page configuration file, and a page style file corresponding to the sub-application identifier. The operating system runs on the terminal 110, and the parent application is run on the operating system. The terminal 110 implements an application processing method through the parent application to implement the sub-application page through the parent application. The terminal 110 may specifically create a sub-application logic layer processing unit and a corresponding sub-application view layer processing unit through the parent application; obtain the sub-application view layer processing unit and obtain the content provided by the parent application according to the sub-application page configuration file. Common component; run the sub-application page logic code through the sub-application logic layer processing unit to get the page data, and pass the page data to the sub-application view layer processing unit; through the sub-application view layer processing unit and according to the page data and the public The component renders the sub-application page.
图2为一个实施例中终端的内部结构示意图。参照图2,该终端包括通过系统总线连接的处理器、非易失性存储介质、内存储器、网络接口、显示屏和输入装置。其中,终端的非易失性存储介质存储有操作系统,还存储有一种应用程序处理装置,该应用程序处理装置用于实现一种应用程序处理方法。终端的处理器用于提供计算和控制能力,支撑整个终端的运行。终端中的内存储器为非易失性存储介质中的应用程序处理装置的运行提供环境。该内存储器中可存储有计算机可读指令,该计算机可读指令被处理器执行时,可使得处理器执行一种应用程序处理方法。终端的网络接口用于与服务器进行网络通信,如下载与子应用程序标识对应的子应用程序页面配置文件。终端的显示屏可以是液晶显示屏或者电子墨水显示屏,终端的输入装置可以是显示屏上覆盖的触摸层,也可以是终端外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。该终端可以是个人计算机或移动终端,移动终端如手机、平板电脑、个人数字助理或者穿戴式设备等。本领域技术人员可以理解,图2中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的终端的限定,具体的终端可以包括比图2中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。FIG. 2 is a schematic diagram showing the internal structure of a terminal in an embodiment. Referring to FIG. 2, the terminal includes a processor connected through a system bus, a non-volatile storage medium, an internal memory, a network interface, a display screen, and an input device. The non-volatile storage medium of the terminal stores an operating system, and an application processing device is also stored, and the application processing device is used to implement an application processing method. The processor of the terminal is used to provide computing and control capabilities to support the operation of the entire terminal. The internal memory in the terminal provides an environment for the operation of the application processing device in the non-volatile storage medium. The internal memory can store computer readable instructions that, when executed by the processor, cause the processor to perform an application processing method. The network interface of the terminal is used for network communication with the server, such as downloading a sub-application page configuration file corresponding to the sub-application identifier. The display screen of the terminal may be a liquid crystal display or an electronic ink display screen, and the input device of the terminal may be a touch layer covered on the display screen, or a button, a trackball or a touchpad provided on the terminal housing, or may be an external connection. Keyboard, trackpad or mouse. The terminal can be a personal computer or a mobile terminal, such as a mobile phone, a tablet, a personal digital assistant, or a wearable device. It will be understood by those skilled in the art that the structure shown in FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the terminal to which the solution of the present application is applied. The specific terminal may include a ratio. More or fewer components are shown in Figure 2, or some components are combined, or have different component arrangements.
图3为一个实施例中应用程序处理方法的流程示意图。本实施例以该方法应用于上述图1中的终端110来举例说明。参照图3,该方法具体包括如下步骤:FIG. 3 is a schematic flow chart of an application processing method in an embodiment. This embodiment is exemplified by applying the method to the terminal 110 in FIG. 1 described above. Referring to FIG. 3, the method specifically includes the following steps:
S302,通过子应用程序视图层处理单元解析子应用程序页面配置文件,以获取由母应用程序提供的公共组件;其中,子应用程序视图层处理单元由运行于操作系统上的母应用程序所创建。S302. Parse the sub-application page configuration file by using a sub-application view layer processing unit to obtain a common component provided by the parent application; wherein the sub-application view layer processing unit is created by a parent application running on the operating system .
具体地,终端通过运行于操作系统上的母应用程序创建子应用程序逻辑层处理单元和相应的子应用程序视图层处理单元。
Specifically, the terminal creates a sub-application logic layer processing unit and a corresponding sub-application view layer processing unit through a parent application running on the operating system.
参照图4,终端上运行操作系统,并在操作系统上运行母应用程序。母应用程序为子应用程序的运行提供环境,创建用于实现子应用程序的子应用程序逻辑层处理单元和相应的子应用程序视图层处理单元。子应用程序视图层处理单元用于子应用程序的视图。子应用程序逻辑层处理单元用于处理子应用程序的交互逻辑。处理单元具体可以是进程或者线程,如子应用程序逻辑层线程和相应的子应用程序视图层线程。子应用程序逻辑层处理单元可运行于虚拟机中,子应用程序视图层处理单元可通过浏览器控件实现。Referring to Figure 4, the operating system is run on the terminal and the parent application is run on the operating system. The parent application provides an environment for the operation of the child application, creating a sub-application logic layer processing unit for implementing the sub-application and a corresponding sub-application view layer processing unit. The sub-application view layer processing unit is used for the view of the sub-application. The sub-application logic layer processing unit is used to process the interaction logic of the sub-application. The processing unit may specifically be a process or a thread, such as a sub-application logic layer thread and a corresponding sub-application view layer thread. The sub-application logic layer processing unit can be run in a virtual machine, and the sub-application view layer processing unit can be implemented by a browser control.
其中,操作系统(Operating System,简称OS)是管理和控制终端硬件与软件资源的计算机程序,是直接运行在终端裸机上的最基本的系统软件,应用程序需要在操作系统的支持下运行。操作系统可以是视窗(Windows)操作系统或Linux操作系统或者Mac OS(苹果桌面操作系统)等桌面操作系统,也可以是iOS(苹果移动终端操作系统)或者安卓(Android)操作系统等移动终端操作系统。The operating system (OS) is a computer program that manages and controls the hardware and software resources of the terminal. It is the most basic system software that runs directly on the bare metal of the terminal. The application needs to run under the support of the operating system. The operating system can be a desktop operating system such as a Windows (Windows) operating system or a Linux operating system or a Mac OS (Apple desktop operating system), or a mobile terminal operation such as an iOS (Apple mobile terminal operating system) or an Android (Android) operating system. system.
母应用程序是承载子应用程序的应用程序,为子应用程序的实现提供环境。母应用程序是原生应用程序。原生应用程序是可直接运行于操作系统的应用程序。母应用程序可以是社交应用程序、专门支持子应用程序的专用应用程序、文件管理应用程序、邮件应用程序或者游戏应用程序等。社交应用程序包括即时通信应用、SNS(Social Network Service,社交网站)应用或者直播应用等。A parent application is an application that hosts a child application, providing an environment for the implementation of the child application. The parent application is a native application. Native applications are applications that run directly on the operating system. The parent application can be a social application, a dedicated application that specifically supports the sub-application, a file management application, a mail application, or a game application. Social applications include instant messaging applications, SNS (Social Network Service) applications, or live applications.
子应用程序则是可在母应用程序提供的环境中实现的应用程序。子应用程序具体可以是社交应用程序、文件管理应用程序、邮件应用程序或者游戏应用程序等。A sub-application is an application that can be implemented in the environment provided by the parent application. The sub-application may specifically be a social application, a file management application, a mail application, or a game application.
在一个实施例中,终端可通过母应用程序获取子应用程序标识,并创建子应用程序逻辑层处理单元和相应的子应用程序视图层处理单元。其中,子应用程序标识用于标识相应的子应用程序。子应用程
序逻辑层处理单元可以与子应用程序标识一一对应;于是一个子应用程序可以仅有一个子应用程序逻辑层处理单元,用于处理整个子应用程序的交互逻辑。子应用程序视图层处理单元则可以与子应用程序标识是多对一的关系,且与子应用程序标识所对应的子应用程序页面标识是一一对应关系;于是一个子应用程序可以存在多个子应用程序视图层处理单元,每个子应用程序视图层处理单元可用于维持一个子应用程序页面。In one embodiment, the terminal may obtain the sub-application identification through the parent application and create a sub-application logic layer processing unit and a corresponding sub-application view layer processing unit. The sub-application ID is used to identify the corresponding sub-application. Sub-application
The sequential logical layer processing unit may have a one-to-one correspondence with the sub-application identifier; thus, a sub-application may have only one sub-application logical layer processing unit for processing the interaction logic of the entire sub-application. The sub-application view layer processing unit can have a many-to-one relationship with the sub-application identifier, and has a one-to-one correspondence with the sub-application page identifier corresponding to the sub-application identifier; thus, a sub-application can have multiple sub-applications. Application view layer processing unit, each sub-application view layer processing unit can be used to maintain a sub-application page.
终端可通过母应用程序获取与子应用程序标识对应的子应用程序页面配置文件,从而根据子应用程序页面配置文件中配置的内容,从由母应用程序提供的公共组件库中获取公共组件。The terminal may obtain a sub-application page configuration file corresponding to the sub-application identifier through the parent application, thereby obtaining a common component from the common component library provided by the parent application according to the content configured in the sub-application page configuration file.
其中,子应用程序页面配置文件可从本地或者服务器获取。子应用程序页面配置文件是对子应用程序所呈现的页面进行配置的文件。子应用程序页面配置文件可以是源代码或者是将源代码编译后得到的文件。子应用程序所呈现页面称为子应用程序页面,子应用程序可以包括一个或多个子应用程序页面。Among them, the sub-application page configuration file can be obtained from the local or server. A sub-application page configuration file is a file that configures the pages rendered by a sub-application. The sub-application page configuration file can be source code or a file obtained by compiling the source code. The page rendered by the sub-application is called a sub-application page, and the sub-application can include one or more sub-application pages.
进一步地,终端可根据子应用程序标识在本地或者服务器确定相应的文件夹,进而从该文件夹中获取子应用程序页面配置文件。或者终端可根据子应用程序标识和子应用程序页面标识的对应关系,获取与该子应用程序标识相应的子应用程序页面配置文件。子应用程序页面标识用于唯一标识一个子应用程序所包括的一个子应用程序页面,而不同的子应用程序可以采用相同的子应用程序页面标识。Further, the terminal may determine the corresponding folder locally or by the server according to the sub-application identifier, and then obtain the sub-application page configuration file from the folder. Or the terminal may obtain a sub-application page configuration file corresponding to the sub-application identifier according to the correspondence between the sub-application identifier and the sub-application page identifier. The sub-application page identifier is used to uniquely identify a sub-application page included in a sub-application, and different sub-applications can use the same sub-application page identifier.
在一个实施例中,当子应用程序包括一个子应用程序页面时,相应的子应用程序页面配置文件也仅有一个,则终端可直接获取与子应用程序标识唯一对应的一个子应用程序页面配置文件。In one embodiment, when the sub-application includes a sub-application page, and there is only one corresponding sub-application page configuration file, the terminal can directly obtain a sub-application page configuration uniquely corresponding to the sub-application identification. file.
进一步地,当子应用程序包括多于一个的子应用程序页面时,终端可获取与该子应用程序标识对应的默认的子应用程序页面配置文
件,或者可获取与子应用程序标识对应且与指定的子应用程序页面标识对应的子应用程序页面配置文件。其中,指定的子应用程序页面标识可由服务器指定,也可由终端根据用户操作指定。Further, when the sub-application includes more than one sub-application page, the terminal may obtain a default sub-application page configuration file corresponding to the sub-application identifier.
Or a sub-application page configuration file corresponding to the sub-application ID and corresponding to the specified sub-application page identifier. The specified sub-application page identifier may be specified by the server, or may be specified by the terminal according to a user operation.
S304,通过子应用程序逻辑层处理单元运行子应用程序页面逻辑代码得到页面数据,并将页面数据传递至子应用程序视图层处理单元;其中,子应用程序逻辑层处理单元由母应用程序所创建。S304. Run the sub-application page logic code through the sub-application logic layer processing unit to obtain page data, and pass the page data to the sub-application view layer processing unit; wherein the sub-application logic layer processing unit is created by the parent application .
具体地,终端通过子应用程序逻辑层处理单元,从与子应用程序标识对应的子应用程序页面逻辑代码文件中获取子应用程序页面逻辑代码并运行,在运行该子应用程序页面逻辑代码时产生页面数据,从而将页面数据传递至子应用程序视图层处理单元。页面数据可由子应用程序逻辑层处理单元直接或通过中转方式传递至子应用程序视图层处理单元。Specifically, the terminal obtains the sub-application page logic code from the sub-application page logic code file corresponding to the sub-application identifier and runs through the sub-application logic layer processing unit, and generates when the sub-application page logic code is run. Page data to pass page data to the sub-application view layer processing unit. The page data can be passed to the sub-application view layer processing unit either directly by the sub-application logic layer processing unit or by a relay method.
其中,页面数据是渲染子应用程序页面所需的数据。页面数据可以是子应用程序页面逻辑代码中定义的页面初始数据,也可以是从子应用程序页面逻辑代码所指定的存储位置拉取的数据,还可以是对子应用程序视图层处理单元传递来的事件进行处理后产生的数据。Among them, the page data is the data required to render the sub-application page. The page data may be the initial data of the page defined in the logic code of the sub-application page, or may be data pulled from the storage location specified by the sub-application page logic code, or may be passed to the sub-application view layer processing unit. The data generated after the event is processed.
S306,通过子应用程序视图层处理单元获取页面样式文件,并根据页面数据、页面样式文件和公共组件渲染子应用程序页面。S306. Acquire a page style file by using a sub-application view layer processing unit, and render the sub-application page according to the page data, the page style file, and the common component.
具体地,终端可获取公共组件自带的默认组件样式数据,从而按照该默认组件样式数据组织公共组件,并将页面数据应用于公共组件中并渲染,形成子应用程序页面。默认组件样式数据是描述相应的公共组件默认的展示形式的数据。默认组件样式数据可以包括相应公共组件默认在子应用程序页面中的位置、尺寸、颜色、字体和字号等属性。终端具体可通过母应用程序集成的浏览器控件并根据选择的公共组件构建子应用程序页面。页面数据可以是公共组件需展示的数据,如列表数据或按钮名称等。
Specifically, the terminal may acquire default component style data that is provided by the common component, thereby organizing the common component according to the default component style data, and applying the page data to the common component and rendering to form a sub-application page. The default component style data is data that describes the default presentation of the corresponding public component. The default component style data can include attributes such as location, size, color, font, and font size of the corresponding common component by default in the sub-application page. The terminal can specifically build a sub-application page according to the selected common component through the browser control integrated by the parent application. The page data can be data that the public component needs to display, such as list data or button names.
上述应用程序处理方法,操作系统上运行母应用程序,母应用程序创建子应用程序逻辑层处理单元和相应的子应用程序视图层处理单元,子应用程序逻辑层处理单元运行子应用程序页面逻辑代码得到页面数据,子应用程序视图层处理单元可根据子应用程序页面配置文件获取由母应用程序提供的公共组件,并根据页面数据和公共组件渲染子应用程序页面。这样母应用程序在运行时,便可以利用母应用程序提供的公共组件以及子应用程序页面逻辑代码构建子应用程序页面,提高了应用程序使用效率,缩短了应用程序安装时长。而且子应用程序逻辑层处理单元和相应的子应用程序视图层处理单元将应用程序的视图层和逻辑层相分离,子应用程序页面配置文件和子应用程序页面逻辑代码可分别更新和使用,更加便于子应用程序的实现和维护。The above application processing method, the parent application is run on the operating system, the parent application creates the sub-application logic layer processing unit and the corresponding sub-application view layer processing unit, and the sub-application logic layer processing unit runs the sub-application page logic code. To get the page data, the sub-application view layer processing unit can obtain the common component provided by the parent application according to the sub-application page configuration file, and render the sub-application page according to the page data and the common component. In this way, when the parent application is running, the common application component provided by the parent application and the sub-application page logic code can be used to construct the sub-application page, which improves the application efficiency and shortens the application installation time. Moreover, the sub-application logic layer processing unit and the corresponding sub-application view layer processing unit separate the view layer and the logical layer of the application, and the sub-application page configuration file and the sub-application page logic code can be updated and used separately, which is more convenient. Sub-application implementation and maintenance.
在一个实施例中,步骤S302具体包括:通过子应用程序视图层处理单元解析子应用程序页面配置文件,得到公共组件标识;在母应用程序所提供的公共组件库中,获取与公共组件标识对应的公共组件。In an embodiment, step S302 specifically includes: parsing the sub-application page configuration file by the sub-application view layer processing unit to obtain a common component identifier; and acquiring, in the common component library provided by the parent application, the public component identifier Common component.
其中,公共组件标识用于唯一标识相应的公共组件。公共组件是母应用程序所提供的可供不同的子应用程序共用的组件,具有视觉形态,是子应用程序页面的组成单元。公共组件还可以封装有用于处理针对该公共组件所触发事件的逻辑代码。不同的子应用程序共用公共组件,具体可以是同时或者在不同时刻调用相同的公共组件。在一个实施例中,公共组件还可由母应用程序和子应用程序所共用。The common component identifier is used to uniquely identify the corresponding common component. The public component is a component provided by the parent application that can be shared by different sub-applications. It has a visual form and is a component of the sub-application page. The common component can also be packaged with logic code for handling events triggered for the common component. Different sub-applications share common components, which can be called the same common component at the same time or at different times. In one embodiment, the common component can also be shared by the parent application and the child application.
公共组件库是母应用程序所提供的公共组件构成的集合。公共组件库中的每个公共组件具有唯一的公共组件标识。公共组件库可由母应用程序在运行时从服务器下载到本地,或者可由母应用程序在被安装时从相应的应用程序安装包中解压缩得到。
The common component library is a collection of common components provided by the parent application. Each common component in the common component library has a unique common component identity. The common component library can be downloaded from the server to the local by the parent application at runtime, or can be decompressed from the corresponding application installation package when the parent application is installed.
本实施例中,母应用程序提供公共组件库,通过子应用程序视图层处理单元解析子应用程序页面配置文件便可以从公共组件库中获取所需的公共组件,应用程序页面配置文件本身不需要包括公共组件,这样利用子应用程序页面配置文件和母应用程序提供的公共组件库可以快速构建子应用程序页面,进一步提高了应用程序使用效率,缩短了应用程序安装时长。In this embodiment, the parent application provides a common component library, and the sub-application view layer processing unit parses the sub-application page configuration file to obtain the required common components from the common component library, and the application page configuration file itself does not need to be It includes common components, which can quickly build sub-application pages by using sub-application page configuration files and common component libraries provided by the parent application, further improving application efficiency and shortening application installation time.
图5为一个实施例中通过运行于操作系统上的母应用程序创建子应用程序逻辑层处理单元和相应的子应用程序视图层处理单元的步骤的流程示意图。参照图5,通过运行于操作系统上的母应用程序创建子应用程序逻辑层处理单元和相应的子应用程序视图层处理单元具体包括如下步骤:5 is a flow diagram showing the steps of creating a sub-application logic layer processing unit and a corresponding sub-application view layer processing unit by a parent application running on an operating system in one embodiment. Referring to FIG. 5, creating a sub-application logic layer processing unit and a corresponding sub-application view layer processing unit by using a parent application running on the operating system specifically includes the following steps:
S502,通过运行于操作系统上的母应用程序获取子应用程序标识。S502. Acquire a sub-application identifier by using a parent application running on the operating system.
具体地,终端可通过运行于操作系统上的母应用程序,并根据子应用程序使用记录或者用户对子应用程序的选择操作获取子应用程序标识。如获取上次使用的子应用程序所对应的子应用程序标识。Specifically, the terminal can obtain the sub-application ID by running the parent application on the operating system and according to the sub-application usage record or the user's selection operation of the sub-application. For example, get the sub-application ID corresponding to the last used sub-application.
在一个实施例中,终端可通过母应用程序展示子应用程序列表,接收针对子应用程序列表中选项的选择指令,根据该选择指令确定子应用程序列表中选中的选项,从而获取该选中的选项对应的子应用程序标识。In one embodiment, the terminal may display a list of sub-applications through the parent application, receive a selection instruction for an option in the sub-application list, and determine an option selected in the sub-application list according to the selection instruction, thereby obtaining the selected option. The corresponding sub-application ID.
进一步地,子应用程序列表中的每个选项代表一个子应用程序,选项具体可以是图形和/或文字的形式。子应用程序列表可以是服务器上所有已存在的子应用程序构成的列表,也可以是按照指定的条件从服务器上所有已存在的子应用程序中筛选出的子应用程序构成的列表,还可以是已下载到本地的子应用程序构成的列表。子应用程序列表可包括一个或多个选项。
Further, each option in the list of sub-applications represents a sub-application, and the options may be in the form of graphics and/or text. The sub-application list can be a list of all existing sub-applications on the server, or a list of sub-applications filtered from all existing sub-applications on the server according to specified conditions, or A list of sub-applications that have been downloaded to the local. The sub-application list can include one or more options.
其中,筛选子应用程序所依照的条件可以是服务器设定的条件,也可以是用户输入的条件。条件可以是排序条件、关键字匹配查询条件或者预分类查询条件。排序条件比如按照子应用程序的发布时间、下载量或者名称等进行排序的条件。关键字匹配查询条件是查询与终端被输入的关键字匹配的子应用程序的条件。预分类查询条件是按照服务器预先对子应用程序所作分类进行查询的条件,如查询办公类、游戏类或者社交类的子应用程序的条件。The condition according to the screening sub-application may be a condition set by the server, or may be a condition input by the user. The condition can be a sort condition, a keyword matching query condition, or a pre-category query condition. The sorting condition is, for example, a condition for sorting according to the posting time, download amount, or name of the sub-application. The keyword matching query condition is a condition for querying a sub-application that matches the keyword that the terminal is input. The pre-categorization query condition is a condition for querying the classification of the sub-application in advance by the server, such as querying the conditions of the sub-application of the office class, the game class, or the social class.
S504,获取与子应用程序标识对应的子应用程序全局逻辑文件。S504. Acquire a sub-application global logic file corresponding to the sub-application identifier.
其中,子应用程序全局逻辑文件是对整个子应用程序的交互逻辑进行配置的文件,整个子应用程序的交互逻辑如对子应用程序各个子应用程序页面进行管理的逻辑,或者子应用程序的启动和关闭的逻辑等。子应用程序全局逻辑文件可从本地读取或从服务器下载,本地的子应用程序全局逻辑文件可事先从服务器下载并存储在本地。The sub-application global logic file is a file that configures the interaction logic of the entire sub-application, and the interaction logic of the entire sub-application, such as logic for managing each sub-application page of the sub-application, or the startup of the sub-application And off logic, etc. Sub-application global logic files can be read locally or downloaded from the server, and local sub-application global logic files can be downloaded from the server and stored locally beforehand.
S506,根据子应用程序全局逻辑文件创建子应用程序逻辑层处理单元。S506. Create a sub-application logic layer processing unit according to the sub-application global logic file.
具体地,终端可通过母应用程序并根据该子应用程序全局逻辑文件创建相应的子应用程序逻辑层处理单元,并由子应用程序逻辑层处理单元运行子应用程序全局逻辑文件中的子应用程序全局逻辑代码。后续子应用程序页面逻辑代码也由该子应用程序逻辑层处理单元运行。Specifically, the terminal may create a corresponding sub-application logic layer processing unit through the parent application according to the sub-application global logic file, and execute the sub-application global in the sub-application global logic file by the sub-application logic layer processing unit. Logic code. Subsequent sub-application page logic code is also run by the sub-application logic layer processing unit.
S508,获取与子应用程序标识对应的子应用程序全局配置文件。S508. Obtain a sub-application global configuration file corresponding to the sub-application identifier.
具体地,终端可通过母应用程序,从本地获取与该子应用程序标识对应的子应用程序全局配置文件。终端也可以通过母应用程序将子应用程序标识发送至服务器,并接收服务器反馈的与该子应用程序标识对应的子应用程序全局配置文件。子应用程序全局配置文件是对相应子应用程序整体进行配置的文件,具体可配置子应用程序页面配置
文件的路径、子应用程序窗口表现形式以及子应用程序的网络超时阈值等子应用程序全局配置信息。Specifically, the terminal may obtain a sub-application global configuration file corresponding to the sub-application identifier from the local application through the parent application. The terminal may also send the sub-application identifier to the server through the parent application, and receive the sub-application global configuration file corresponding to the sub-application identifier fed back by the server. The sub-application global configuration file is a file for configuring the corresponding sub-application as a whole, and the configurable sub-application page configuration
Sub-application global configuration information such as the path to the file, the sub-application window representation, and the network timeout threshold for the sub-application.
S510,获取子应用程序全局配置文件所指定的子应用程序页面配置文件。S510. Obtain a sub-application page configuration file specified by the sub-application global configuration file.
具体地,终端可通过母应用程序解析子应用程序全局配置文件,从中获得子应用程序全局配置信息,该子应用程序全局配置信息包括子应用程序页面配置文件的路径。终端可通过母应用程序,并根据获取的路径定位相应的子应用程序页面配置文件,并获取该子应用程序页面配置文件。Specifically, the terminal may parse the sub-application global configuration file by using the parent application to obtain sub-application global configuration information, where the sub-application global configuration information includes a path of the sub-application page configuration file. The terminal can locate the corresponding sub-application page configuration file according to the obtained path through the parent application, and obtain the sub-application page configuration file.
终端可应用获得的子应用程序全局配置信息。终端具体可从子应用程序全局配置文件中获取相应且默认的子应用程序页面配置文件,也可以获取相应且根据用户操作所指定的子应用程序页面配置文件。The terminal can apply the obtained sub-application global configuration information. The terminal may obtain the corresponding and default sub-application page configuration file from the sub-application global configuration file, or obtain the corresponding sub-application page configuration file specified according to the user operation.
其中,路径具体可以是服务器或本地的路径,可以是绝对或者相对路径。子应用程序全局配置信息还可以包括子应用程序窗口表现形式以及子应用程序的网络超时阈值,可应用于相应子应用程序所包括的所有子应用程序页面。The path may be a server or a local path, and may be an absolute or a relative path. The sub-application global configuration information may also include a sub-application window representation and a sub-application's network timeout threshold, which may be applied to all sub-application pages included in the corresponding sub-application.
S512,根据子应用程序页面配置文件创建子应用程序视图层处理单元。S512. Create a sub-application view layer processing unit according to the sub-application page configuration file.
具体地,终端可通过母应用程序创建与子应用程序页面配置文件一一对应的子应用程序视图层处理单元。终端后续可通过该子应用程序视图层处理单元并根据该子应用程序页面配置文件获取由母应用程序提供的公共组件。Specifically, the terminal may create a sub-application view layer processing unit corresponding to the sub-application page configuration file through the parent application. The terminal can subsequently obtain the common component provided by the parent application through the sub-application view layer processing unit and according to the sub-application page configuration file.
本实施例中,根据子应用程序全局逻辑文件创建相应的子应用程序逻辑层处理单元,并根据子应用程序全局配置文件所指定的子应用程序页面配置文件创建子应用程序视图层处理单元,便于对整个子应用程序的全局管理和各子应用程序页面的管理。
In this embodiment, the corresponding sub-application logic layer processing unit is created according to the sub-application global logic file, and the sub-application view layer processing unit is created according to the sub-application page configuration file specified by the sub-application global configuration file, which is convenient. Global management of the entire sub-application and management of each sub-application page.
图6为一个实施例中步骤S306的流程示意图。参照图6,步骤S306具体包括如下步骤:FIG. 6 is a schematic flowchart of step S306 in an embodiment. Referring to FIG. 6, step S306 specifically includes the following steps:
S602,通过子应用程序视图层处理单元获取页面样式文件。S602. Acquire a page style file by using a sub-application view layer processing unit.
具体地,对于每个子应用程序页面配置文件存在相应的页面样式文件,可从本地或服务器获取,用于配置相应子应用程序页面的展示形式。Specifically, for each sub-application page configuration file, there is a corresponding page style file, which can be obtained from a local or server, and configured to display a display form of the corresponding sub-application page.
S604,从页面样式文件中获取与公共组件对应的组件样式数据。S604. Obtain component style data corresponding to the common component from the page style file.
其中,页面样式文件可以包括与公共组件标识对应的组件样式数据,还可以包括子应用程序页面的页面整体样式数据。组件样式数据可以包括相应公共组件在所属子应用程序页面中的位置、尺寸、颜色、字体和字号等属性中的至少一种。页面整体样式数据可以包括相应子应用程序页面的页面尺寸以及页面背景颜色等属性中的至少一种。The page style file may include component style data corresponding to the common component identifier, and may also include page overall style data of the sub-application page. The component style data may include at least one of attributes such as position, size, color, font, and font size of the corresponding common component in the sub-application page to which it belongs. The page overall style data may include at least one of a page size of the corresponding sub-application page and an attribute such as a page background color.
S606,根据页面数据、公共组件和组件样式数据渲染子应用程序页面。S606, rendering the sub-application page according to the page data, the common component, and the component style data.
具体地,终端可通过子应用程序视图层处理单元获取与子应用程序页面配置文件相应的页面样式文件,从中获得与公共组件标识一一对应的组件样式数据,组件样式数据和公共组件可通过组件标识相对应,从而在根据公共组件构建子应用程序页面时,将与公共组件相应的组件样式数据应用于公共组件。终端将应用了组件样式数据的公共组件和相应的页面数据进行渲染,得到子应用程序页面。Specifically, the terminal may obtain a page style file corresponding to the sub-application page configuration file by using the sub-application view layer processing unit, and obtain component style data corresponding to the common component identifier, and the component style data and the common component may pass the component. The identifier corresponds so that when the child application page is built from the common component, the component style data corresponding to the common component is applied to the common component. The terminal renders the common component of the component style data and the corresponding page data to obtain the sub-application page.
本实施例中,通过与子应用程序页面配置文件相应的页面样式文件,可以为不同的子应用程序以及不同的子应用程序页面实现差异化的呈现方式,这使得子应用程序可以达到与原生应用程序基本一致的使用体验,且比原生应用程序更加轻量化。In this embodiment, by using a page style file corresponding to the sub-application page configuration file, a differentiated presentation manner can be implemented for different sub-applications and different sub-application pages, which enables the sub-application to reach the native application. The program has a consistent user experience and is much lighter than native applications.
在一个实施例中,该应用程序处理方法还包括对子应用程序页面中公共组件所触发的事件进行响应的步骤。参照图7,该对子应用程
序页面中公共组件所触发的事件进行响应的步骤具体包括如下步骤:In one embodiment, the application processing method further includes the step of responding to an event triggered by a common component in the sub-application page. Referring to Figure 7, the pair of sub-applications
The step of responding to the event triggered by the common component in the sequence page specifically includes the following steps:
S702,通过子应用程序视图层处理单元获取针对子应用程序页面中公共组件所触发的事件,并将事件传递至子应用程序逻辑层处理单元。S702. Acquire an event triggered by a common component in the sub-application page through the sub-application view layer processing unit, and pass the event to the sub-application logic layer processing unit.
具体地,终端可通过子应用程序视图层处理单元检测或监听子应用程序页面中针对子应用程序页面中公共组件所触发的事件。针对公共组件所触发的事件,是操作该公共组件所触发的事件。其中,事件用于描述子应用程序页面中发生的操作。事件可分为多种事件类型,如触摸事件、表单提交(Submit)事件、输入事件或者滚动(Scroll)事件等。触摸事件如开始触摸事件、触摸移动事件、触摸取消事件、触摸结束事件以及触摸超过预设时长的事件等。事件可由子应用程序视图层处理单元直接或通过中转方式传递至子应用程序逻辑层处理单元。Specifically, the terminal may detect or listen to events triggered by the common component in the sub-application page in the sub-application page through the sub-application view layer processing unit. The event triggered by the common component is the event triggered by the operation of the common component. Among them, the event is used to describe the operation that occurs in the sub-application page. Events can be divided into multiple event types, such as touch events, form submission events, input events, or scroll events. Touch events such as a start touch event, a touch move event, a touch cancel event, a touch end event, and an event that touches a preset duration. Events can be passed to the sub-application logic layer processing unit either directly by the sub-application view layer processing unit or through a relay.
S704,通过子应用程序逻辑层处理单元并根据子应用程序页面逻辑代码响应事件,并将相应的事件响应数据传递至子应用程序视图层处理单元。S704, processing the unit through the sub-application logic layer and responding to the event according to the sub-application page logic code, and transmitting the corresponding event response data to the sub-application view layer processing unit.
具体地,终端可在通过子应用程序逻辑层处理单元接收到由子应用程序视图层处理单元传递的事件后,确定该事件的事件类型,进而采用子应用程序页面逻辑代码中与该事件类型相匹配的逻辑代码处理该事件,得到相应的事件响应数据。事件可携带相应的公共组件标识,终端可采用子应用程序页面逻辑代码中与该公共组件标识对应且与事件的事件类型对应的逻辑代码处理该事件,得到相应的事件响应数据。事件还可以携带数据,终端在通过母应用程序处理该事件时,可将事件所携带的数据传入子应用程序页面逻辑代码进行处理。Specifically, after receiving the event delivered by the sub-application view layer processing unit through the sub-application logic layer processing unit, the terminal determines the event type of the event, and then matches the event type in the sub-application page logic code. The logic code processes the event and gets the corresponding event response data. The event may carry a corresponding common component identifier, and the terminal may use the logic code corresponding to the common component identifier in the sub-application page logic code and corresponding to the event type of the event to process the event, and obtain corresponding event response data. The event can also carry data, and when the terminal processes the event through the parent application, the data carried by the event can be processed into the sub-application page logic code.
S706,通过子应用程序视图层处理单元并根据事件响应数据更新子应用程序页面。
S706: The sub-application view layer processing unit and the sub-application page are updated according to the event response data.
具体地,终端可通过子应用程序视图层处理单元并根据子应用程序页面中的公共组件和事件响应数据重新渲染,得到更新的子应用程序页面。Specifically, the terminal may re-render through the sub-application view layer processing unit and according to common components and event response data in the sub-application page to obtain an updated sub-application page.
本实施例中,子应用程序页面中事件由子应用程序视图层处理单元获取到,并由子应用程序逻辑层处理单元对事件进行响应,进而通过子应用程序视图层处理单元进行重渲染以更新子应用程序页面,事件的获取及事件响应数据的渲染与事件处理逻辑相分离,进一步提高了子应用程序实现和维护的便利性。In this embodiment, the event in the sub-application page is obtained by the sub-application view layer processing unit, and the sub-application logic layer processing unit responds to the event, and then re-renders through the sub-application view layer processing unit to update the sub-application. Program page, event acquisition and event response data rendering are separated from event processing logic, further improving the convenience of sub-application implementation and maintenance.
在一个实施例中,步骤S704具体包括:通过子应用程序逻辑层处理单元并根据子应用程序页面逻辑代码调用由母应用程序提供的应用程序编程接口响应事件。In one embodiment, step S704 specifically includes: processing the unit through the sub-application logic layer and invoking an application programming interface response event provided by the parent application according to the sub-application page logic code.
具体地,母应用程序提供应用程序编程接口库,该应用程序编程接口库包括丰富的应用程序编程接口(API)。终端可通过子应用程序逻辑层处理单元,并根据子应用程序页面逻辑代码,在应用程序编程接口库中选择响应事件所需的应用程序编程接口,从而通过该选择的应用程序编程接口处理该事件,得到事件响应数据。应用程序编程接口可用于进行网络操作、数据处理、媒体操作、操作终端硬件或者操作子应用程序页面等。子应用程序页面逻辑代码中可记录事件类型和应用程序编程接口的对应关系,或者是事件类型、公共组件标识和应用程序编程接口的对应关系,从而终端可以通过子应用程序逻辑层处理单元并根据子应用程序页面逻辑代码记载的对应关系,在应用程序编程接口库中选择处理事件所需的应用程序编程接口。In particular, the parent application provides a library of application programming interfaces that include a rich application programming interface (API). The terminal can process the unit through the sub-application logic layer processing unit and select an application programming interface required to respond to the event in the application programming interface library according to the sub-application page logic code, thereby processing the event through the selected application programming interface. , get event response data. The application programming interface can be used for network operations, data processing, media operations, operating terminal hardware, or operating sub-application pages. The sub-application page logic code can record the correspondence between the event type and the application programming interface, or the correspondence between the event type, the common component identifier, and the application programming interface, so that the terminal can process the unit through the sub-application logic layer and according to The corresponding relationship recorded in the sub-application page logic code selects the application programming interface required to process the event in the application programming interface library.
本实施例中,通过母应用程序提供的应用程序编程接口实现对子应用程序页面中所触发事件的处理,子应用程序页面逻辑代码用于配置对母应用程序所提供的应用程序编程接口的调用,使得子应用程序的实现更加轻量化。
In this embodiment, the application programming interface provided by the parent application implements processing of the triggered event in the sub-application page, and the sub-application page logic code is configured to configure the call to the application programming interface provided by the parent application. To make the implementation of sub-applications lighter.
在一个实施例中,步骤S704具体包括:通过子应用程序逻辑层处理单元并根据子应用程序页面逻辑代码调用由操作系统提供的应用程序编程接口响应事件。本实施例中,通过母应用程序直接调用操作系统提供的应用程序编程接口处理事件,使得子应用程序的实现更加轻量化。In one embodiment, step S704 specifically includes: processing the unit through the sub-application logic layer and invoking an application programming interface response event provided by the operating system according to the sub-application page logic code. In this embodiment, the application programming interface provided by the operating system is directly called by the parent application to process the event, so that the implementation of the sub-application is more lightweight.
在一个实施例中,步骤S704具体包括:通过子应用程序逻辑层处理单元并根据子应用程序页面逻辑代码调用由母应用程序提供的应用程序编程接口,并通过由母应用程序提供的应用程序编程接口调用由操作系统提供的应用程序编程接口响应事件。In one embodiment, step S704 specifically includes: processing the unit through the sub-application logic layer and calling the application programming interface provided by the parent application according to the sub-application page logic code, and programming through the application provided by the parent application. The interface calls the application programming interface provided by the operating system to respond to events.
具体地,母应用程序提供的应用程序编程接口可以是对操作系统所提供的应用程序编程接口的封装,母应用程序提供的一个应用程序编程接口可以是对操作系统所提供的一个或多个应用程序编程接口的封装。终端通过子应用程序逻辑层处理单元调用由母应用程序提供的应用程序编程接口,进而调用由操作系统提供的应用程序编程接口,将事件传递至操作系统进行处理,获得相应的事件响应数据。Specifically, the application programming interface provided by the parent application may be a package of an application programming interface provided by the operating system, and an application programming interface provided by the parent application may be one or more applications provided by the operating system. The package of the programming interface. The terminal invokes the application programming interface provided by the parent application through the sub-application logic layer processing unit, and then invokes the application programming interface provided by the operating system to pass the event to the operating system for processing, and obtain corresponding event response data.
本实施例中,母应用程序通过由操作系统提供的应用程序编程接口处理子应用程序页面中触发的事件,相比完全由母应用程序处理事件可以减轻母应用程序负担。In this embodiment, the parent application processes the event triggered in the sub-application page through the application programming interface provided by the operating system, and the parent application load can be alleviated compared to completely processing the event by the parent application.
在一个实施例中,子应用程序页面配置文件采用标记语言编写;子应用程序页面逻辑代码采用脚本语言编写;子应用程序逻辑层处理单元和子应用程序视图层处理单元之间通过由母应用程序提供的原生接口进行中转通信。In one embodiment, the sub-application page configuration file is written in a markup language; the sub-application page logic code is written in a scripting language; the sub-application logic layer processing unit and the sub-application view layer processing unit are provided by the parent application The native interface performs relay communication.
其中,标记语言(Markup Language)是一种将文本以及文本相关的其他信息结合起来,展现出关于文档结构和数据处理细节的电脑文字编码。子应用程序页面配置文件可以采用HTML、XML或者基于XML扩展的自定义标记语言。脚本语言比如JavaScript或者
VBScript。原生(native)接口是操作系统本地支持的接口,比如可以是JavascriptBridge。在安卓操作系统中,原生接口属于本地框架,采用C语言和/或C++语言编写。Among them, Markup Language is a combination of text and other information related to text, showing computer text encoding about document structure and data processing details. The sub-application page configuration file can be in HTML, XML, or a custom markup language based on XML extensions. Scripting language such as JavaScript or
VBScript. The native interface is an interface supported locally by the operating system, such as JavascriptBridge. In the Android operating system, native interfaces belong to the local framework and are written in C and/or C++.
本实施例中,子应用程序页面配置文件采用标记语言编写,使得子应用程序页面配置文件的编辑直观且便捷。子应用程序页面逻辑代码采用脚本语言编写,便于子应用程序逻辑的实现。而且通过母应用程序提供的原生接口,采用不同计算机语言的子应用程序逻辑层处理单元和子应用程序视图层处理单元之间可以正常通信。In this embodiment, the sub-application page configuration file is written in a markup language, so that the editing of the sub-application page configuration file is intuitive and convenient. The sub-application page logic code is written in a scripting language to facilitate the implementation of sub-application logic. Moreover, through the native interface provided by the parent application, the sub-application logic layer processing unit and the sub-application view layer processing unit in different computer languages can communicate normally.
图8为一个实施例中应用程序处理装置800的结构框图。参照图8,该应用程序处理装置800包括:一个或一个以上存储器;一个或一个以上处理器;其中,所述一个或一个以上存储器存储有一个或者一个以上指令模块,经配置由所述一个或者一个以上处理器执行;其中,所述一个或者一个以上指令模块包括:视图层模块802和逻辑层模块803。FIG. 8 is a block diagram showing the structure of an application processing apparatus 800 in one embodiment. Referring to FIG. 8, the application processing apparatus 800 includes: one or more memories; one or more processors; wherein the one or more memories store one or more instruction modules configured by the one or Executing by one or more processors; wherein the one or more instruction modules include: a view layer module 802 and a logic layer module 803.
视图层模块802,用于通过子应用程序视图层处理单元并根据子应用程序页面配置文件获取由母应用程序提供的公共组件;子应用程序视图层处理单元由运行于操作系统上的母应用程序所创建。The view layer module 802 is configured to obtain a common component provided by the parent application according to the sub-application view layer processing unit according to the sub-application page configuration file; the sub-application view layer processing unit is executed by the parent application running on the operating system Created.
逻辑层模块803,用于通过子应用程序逻辑层处理单元运行子应用程序页面逻辑代码得到页面数据,并将页面数据传递至子应用程序视图层处理单元;子应用程序逻辑层处理单元由母应用程序所创建。The logic layer module 803 is configured to obtain the page data by running the sub-application page logic code through the sub-application logic layer processing unit, and pass the page data to the sub-application view layer processing unit; the sub-application logic layer processing unit is configured by the parent application The program was created.
视图层模块802还用于通过子应用程序视图层处理单元并根据页面数据和公共组件渲染子应用程序页面。The view layer module 802 is also used to process the unit through the sub-application view layer and render the sub-application page according to the page data and the common component.
上述应用程序处理装置800,操作系统上运行母应用程序,母应用程序创建子应用程序逻辑层处理单元和相应的子应用程序视图层处理单元,子应用程序逻辑层处理单元运行子应用程序页面逻辑代码
得到页面数据,子应用程序视图层处理单元可根据子应用程序页面配置文件获取由母应用程序提供的公共组件,并根据页面数据和公共组件渲染子应用程序页面。这样母应用程序在运行时,便可以利用母应用程序提供的公共组件以及子应用程序页面逻辑代码构建子应用程序页面,提高了应用程序使用效率。而且子应用程序逻辑层处理单元和相应的子应用程序视图层处理单元将应用程序的视图层和逻辑层相分离,子应用程序页面配置文件和子应用程序页面逻辑代码可分别更新和使用,更加便于子应用程序的实现和维护。The application processing device 800, the parent application is run on the operating system, the parent application creates the sub-application logic layer processing unit and the corresponding sub-application view layer processing unit, and the sub-application logic layer processing unit runs the sub-application page logic. Code
To get the page data, the sub-application view layer processing unit can obtain the common component provided by the parent application according to the sub-application page configuration file, and render the sub-application page according to the page data and the common component. In this way, when the parent application is running, the common application component provided by the parent application and the sub-application page logic code can be used to construct the sub-application page, thereby improving the application efficiency. Moreover, the sub-application logic layer processing unit and the corresponding sub-application view layer processing unit separate the view layer and the logical layer of the application, and the sub-application page configuration file and the sub-application page logic code can be updated and used separately, which is more convenient. Sub-application implementation and maintenance.
如图9所示,在一个实施例中,应用程序处理装置800还包括处理单元管理模块801,用于通过运行于操作系统上的母应用程序创建子应用程序逻辑层处理单元和相应的子应用程序视图层处理单元。As shown in FIG. 9, in one embodiment, the application processing apparatus 800 further includes a processing unit management module 801 for creating a sub-application logic layer processing unit and a corresponding sub-application by a parent application running on the operating system. Program view layer processing unit.
在一个实施例中,处理单元管理模块801还用于通过运行于操作系统上的母应用程序获取子应用程序标识;获取与子应用程序标识对应的子应用程序全局逻辑文件;根据子应用程序全局逻辑文件创建子应用程序逻辑层处理单元;获取与子应用程序标识对应的子应用程序全局配置文件;获取子应用程序全局配置文件所指定的子应用程序页面配置文件;根据子应用程序页面配置文件创建子应用程序视图层处理单元。In an embodiment, the processing unit management module 801 is further configured to acquire a sub-application identifier by using a parent application running on the operating system; acquire a sub-application global logic file corresponding to the sub-application identifier; and globally according to the sub-application The logical file creates a sub-application logical layer processing unit; obtains a sub-application global configuration file corresponding to the sub-application identifier; acquires a sub-application page configuration file specified by the sub-application global configuration file; and according to the sub-application page configuration file Create a sub-application view layer processing unit.
本实施例中,根据子应用程序全局逻辑文件创建相应的子应用程序逻辑层处理单元,并根据子应用程序全局配置文件所指定的子应用程序页面配置文件创建子应用程序视图层处理单元,便于对整个子应用程序的全局管理和各子应用程序页面的管理。In this embodiment, the corresponding sub-application logic layer processing unit is created according to the sub-application global logic file, and the sub-application view layer processing unit is created according to the sub-application page configuration file specified by the sub-application global configuration file, which is convenient. Global management of the entire sub-application and management of each sub-application page.
在一个实施例中,视图层模块802还用于通过子应用程序视图层处理单元解析子应用程序页面配置文件,得到公共组件标识;在母应用程序所提供的公共组件库中,获取与公共组件标识对应的公共组件。
In an embodiment, the view layer module 802 is further configured to parse the sub-application page configuration file by using the sub-application view layer processing unit to obtain the common component identifier; and obtain the common component in the common component library provided by the parent application. Identifies the corresponding public component.
本实施例中,母应用程序提供公共组件库,通过子应用程序视图层处理单元解析子应用程序页面配置文件便可以从公共组件库中获取所需的公共组件,应用程序页面配置文件本身不需要包括公共组件,这样利用子应用程序页面配置文件和母应用程序提供的公共组件库可以快速构建子应用程序页面,进一步提高了应用程序使用效率,缩短了应用程序安装时长。In this embodiment, the parent application provides a common component library, and the sub-application view layer processing unit parses the sub-application page configuration file to obtain the required common components from the common component library, and the application page configuration file itself does not need to be It includes common components, which can quickly build sub-application pages by using sub-application page configuration files and common component libraries provided by the parent application, further improving application efficiency and shortening application installation time.
在一个实施例中,视图层模块802还用于通过子应用程序视图层处理单元获取页面样式文件;从页面样式文件中获取与公共组件对应的组件样式数据;根据页面数据、公共组件和组件样式数据渲染子应用程序页面。In an embodiment, the view layer module 802 is further configured to obtain a page style file by using a sub-application view layer processing unit; and obtain component style data corresponding to the common component from the page style file; according to the page data, the common component, and the component style The data renders the sub-application page.
本实施例中,通过与子应用程序页面配置文件相应的页面样式文件,可以为不同的子应用程序以及不同的子应用程序页面实现差异化的呈现方式,这使得子应用程序可以达到与原生应用程序基本一致的使用体验,且比原生应用程序更加轻量化。In this embodiment, by using a page style file corresponding to the sub-application page configuration file, a differentiated presentation manner can be implemented for different sub-applications and different sub-application pages, which enables the sub-application to reach the native application. The program has a consistent user experience and is much lighter than native applications.
在一个实施例中,视图层模块802还用于通过子应用程序视图层处理单元获取针对子应用程序页面中公共组件所触发的事件,并将事件传递至子应用程序逻辑层处理单元;逻辑层模块803还用于通过子应用程序逻辑层处理单元并根据子应用程序页面逻辑代码响应事件,并将相应的事件响应数据传递至子应用程序视图层处理单元;视图层模块802还用于通过子应用程序视图层处理单元并根据事件响应数据更新子应用程序页面。In an embodiment, the view layer module 802 is further configured to: acquire, by the sub-application view layer processing unit, an event triggered by a common component in the sub-application page, and pass the event to the sub-application logic layer processing unit; the logic layer The module 803 is further configured to process the unit through the sub-application logic layer and respond to the event according to the sub-application page logic code, and deliver the corresponding event response data to the sub-application view layer processing unit; the view layer module 802 is also used to pass the sub- The application view layer handles the unit and updates the sub-application page based on the event response data.
本实施例中,子应用程序页面中事件由子应用程序视图层处理单元获取到,并由子应用程序逻辑层处理单元对事件进行响应,进而通过子应用程序视图层处理单元进行重渲染以更新子应用程序页面,事件的获取及事件响应数据的渲染与事件处理逻辑相分离,进一步提高了子应用程序实现和维护的便利性。
In this embodiment, the event in the sub-application page is obtained by the sub-application view layer processing unit, and the sub-application logic layer processing unit responds to the event, and then re-renders through the sub-application view layer processing unit to update the sub-application. Program page, event acquisition and event response data rendering are separated from event processing logic, further improving the convenience of sub-application implementation and maintenance.
在一个实施例中,逻辑层模块803还用于通过子应用程序逻辑层处理单元并根据子应用程序页面逻辑代码调用由母应用程序提供的应用程序编程接口响应事件。本实施例中,通过母应用程序提供的应用程序编程接口实现对子应用程序页面中所触发事件的处理,子应用程序页面逻辑代码用于配置对母应用程序所提供的应用程序编程接口的调用,使得子应用程序的实现更加轻量化。In one embodiment, the logic layer module 803 is further configured to process the unit through the sub-application logic layer and invoke the application programming interface response event provided by the parent application based on the sub-application page logic code. In this embodiment, the application programming interface provided by the parent application implements processing of the triggered event in the sub-application page, and the sub-application page logic code is configured to configure the call to the application programming interface provided by the parent application. To make the implementation of sub-applications lighter.
在一个实施例中,逻辑层模块803还用于通过子应用程序逻辑层处理单元并根据子应用程序页面逻辑代码调用由操作系统提供的应用程序编程接口响应事件。本实施例中,通过母应用程序直接调用操作系统提供的应用程序编程接口处理事件,使得子应用程序的实现更加轻量化。In one embodiment, the logic layer module 803 is further configured to process the unit through the sub-application logic layer and invoke an application programming interface response event provided by the operating system according to the sub-application page logic code. In this embodiment, the application programming interface provided by the operating system is directly called by the parent application to process the event, so that the implementation of the sub-application is more lightweight.
在一个实施例中,逻辑层模块803还用于通过子应用程序逻辑层处理单元并根据子应用程序页面逻辑代码调用由母应用程序提供的应用程序编程接口,并通过由母应用程序提供的应用程序编程接口调用由操作系统提供的应用程序编程接口响应事件。In one embodiment, the logic layer module 803 is further configured to process the unit through the sub-application logic layer and invoke the application programming interface provided by the parent application according to the sub-application page logic code, and through the application provided by the parent application. The programming interface invokes an application programming interface provided by the operating system to respond to events.
本实施例中,母应用程序通过由操作系统提供的应用程序编程接口处理子应用程序页面中触发的事件,相比完全由母应用程序处理事件可以减轻母应用程序负担。In this embodiment, the parent application processes the event triggered in the sub-application page through the application programming interface provided by the operating system, and the parent application load can be alleviated compared to completely processing the event by the parent application.
在一个实施例中,子应用程序页面配置文件采用标记语言编写;子应用程序页面逻辑代码采用脚本语言编写;子应用程序逻辑层处理单元和子应用程序视图层处理单元之间通过由母应用程序提供的原生接口进行中转通信。In one embodiment, the sub-application page configuration file is written in a markup language; the sub-application page logic code is written in a scripting language; the sub-application logic layer processing unit and the sub-application view layer processing unit are provided by the parent application The native interface performs relay communication.
本实施例中,子应用程序页面配置文件采用标记语言编写,使得子应用程序页面配置文件的编辑直观且便捷。子应用程序页面逻辑代码采用脚本语言编写,便于子应用程序逻辑的实现。而且通过母应用程序提供的原生接口,采用不同计算机语言的子应用程序逻辑层处理
单元和子应用程序视图层处理单元之间可以正常通信。In this embodiment, the sub-application page configuration file is written in a markup language, so that the editing of the sub-application page configuration file is intuitive and convenient. The sub-application page logic code is written in a scripting language to facilitate the implementation of sub-application logic. And through the native interface provided by the parent application, the sub-application logic layer processing in different computer languages
Units and sub-application view layer processing units can communicate normally.
上述应用程序处理方法和装置,操作系统上运行母应用程序,母应用程序创建子应用程序逻辑层处理单元和相应的子应用程序视图层处理单元,子应用程序逻辑层处理单元运行子应用程序页面逻辑代码得到页面数据,子应用程序视图层处理单元可根据子应用程序页面配置文件获取由所述母应用程序提供的公共组件,并根据所述页面数据和所述公共组件渲染子应用程序页面。这样母应用程序在运行时,便可以利用母应用程序提供的公共组件以及子应用程序页面逻辑代码构建子应用程序页面,提高了应用程序使用效率。而且子应用程序逻辑层处理单元和相应的子应用程序视图层处理单元将应用程序的视图层和逻辑层相分离,子应用程序页面配置文件和子应用程序页面逻辑代码可分别更新和使用,更加便于子应用程序的实现和维护。The above application processing method and apparatus, the parent application is run on the operating system, the parent application creates a sub-application logic layer processing unit and a corresponding sub-application view layer processing unit, and the sub-application logic layer processing unit runs the sub-application page The logic code obtains page data, and the sub-application view layer processing unit may acquire a common component provided by the parent application according to the sub-application page configuration file, and render the sub-application page according to the page data and the common component. In this way, when the parent application is running, the common application component provided by the parent application and the sub-application page logic code can be used to construct the sub-application page, thereby improving the application efficiency. Moreover, the sub-application logic layer processing unit and the corresponding sub-application view layer processing unit separate the view layer and the logical layer of the application, and the sub-application page configuration file and the sub-application page logic code can be updated and used separately, which is more convenient. Sub-application implementation and maintenance.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,该存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a non-volatile computer readable storage medium. The program, when executed, may include the flow of an embodiment of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.
因此,本发明实施例还提供了一种存储介质,其中存储有数据处理程序,该数据处理程序用于执行本发明实施例上述方法的任何一种实施例。Therefore, an embodiment of the present invention further provides a storage medium in which a data processing program is stored, and the data processing program is used to execute any one of the foregoing methods of the embodiments of the present invention.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, It is considered to be the range described in this specification.
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,
对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。
The above embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that
It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and scope of the invention. Therefore, the scope of protection of the application should be determined by the appended claims.
Claims (18)
- 一种应用程序处理方法,包括:An application processing method, including:通过子应用程序视图层处理单元解析子应用程序页面配置文件,以获取由母应用程序提供的公共组件;其中,所述子应用程序视图层处理单元由运行于操作系统上的所述母应用程序所创建;Parsing the sub-application page configuration file through the sub-application view layer processing unit to obtain a common component provided by the parent application; wherein the sub-application view layer processing unit is executed by the parent application running on the operating system Created通过子应用程序逻辑层处理单元运行子应用程序页面逻辑代码得到页面数据,并将所述页面数据传递至所述子应用程序视图层处理单元;其中,所述子应用程序逻辑层处理单元由所述母应用程序所创建;Transmitting the page data by running the sub-application page logic code by the sub-application logic layer processing unit, and passing the page data to the sub-application view layer processing unit; wherein the sub-application logic layer processing unit is Created by the parent application;通过所述子应用程序视图层处理单元获取页面样式文件,并根据所述页面数据、所述页面样式文件和所述公共组件渲染子应用程序页面。A page style file is obtained by the sub-application view layer processing unit, and the sub-application page is rendered according to the page data, the page style file, and the common component.
- 根据权利要求1所述的方法,其中,所述获取由母应用程序提供的公共组件的步骤之前,所述方法还包括:The method of claim 1, wherein before the step of obtaining a common component provided by the parent application, the method further comprises:通过运行于操作系统上的母应用程序获取子应用程序标识;Obtain the sub-application ID from the parent application running on the operating system;获取与所述子应用程序标识对应的子应用程序全局逻辑文件;Obtaining a sub-application global logic file corresponding to the sub-application identifier;根据所述子应用程序全局逻辑文件创建子应用程序逻辑层处理单元;Creating a sub-application logic layer processing unit according to the sub-application global logic file;获取与所述子应用程序标识对应的子应用程序全局配置文件;Obtaining a sub-application global configuration file corresponding to the sub-application identifier;获取所述子应用程序全局配置文件所指定的子应用程序页面配置文件;Obtaining a sub-application page configuration file specified by the sub-application global configuration file;根据所述子应用程序页面配置文件创建子应用程序视图层处理单元。Create a sub-application view layer processing unit based on the sub-application page configuration file.
- 根据权利要求1所述的方法,其中,所述获取由母应用程序提供的公共组件的步骤包括: The method of claim 1 wherein said step of obtaining a common component provided by the parent application comprises:通过所述子应用程序视图层处理单元解析子应用程序页面配置文件,得到公共组件标识;Parsing the sub-application page configuration file by the sub-application view layer processing unit to obtain a common component identifier;在所述母应用程序所提供的公共组件库中,获取与所述公共组件标识对应的公共组件。In the common component library provided by the parent application, a common component corresponding to the common component identifier is obtained.
- 根据权利要求1所述的方法,其中,所述通过所述子应用程序视图层处理单元获取页面样式文件,并根据所述页面数据、所述页面样式文件和所述公共组件渲染子应用程序页面的步骤包括:The method of claim 1, wherein the page style file is obtained by the sub-application view layer processing unit, and the sub-application page is rendered according to the page data, the page style file, and the common component The steps include:通过所述子应用程序视图层处理单元获取页面样式文件;Obtaining a page style file by using the sub-application view layer processing unit;从所述页面样式文件中获取与所述公共组件对应的组件样式数据;Obtaining component style data corresponding to the common component from the page style file;根据所述页面数据、所述公共组件和所述组件样式数据渲染子应用程序页面。The sub-application page is rendered according to the page data, the common component, and the component style data.
- 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:通过所述子应用程序视图层处理单元获取针对所述子应用程序页面中公共组件所触发的事件,并将所述事件传递至所述子应用程序逻辑层处理单元;Acquiring an event triggered by a common component in the sub-application page by the sub-application view layer processing unit, and passing the event to the sub-application logic layer processing unit;通过所述子应用程序逻辑层处理单元并根据所述子应用程序页面逻辑代码响应所述事件,并将相应的事件响应数据传递至所述子应用程序视图层处理单元;Responding to the event by the sub-application logic layer processing unit and according to the sub-application page logic code, and transmitting corresponding event response data to the sub-application view layer processing unit;通过所述子应用程序视图层处理单元并根据所述事件响应数据更新所述子应用程序页面。The sub-application page is updated by the sub-application view layer processing unit and according to the event response data.
- 根据权利要求5所述的方法,其中,所述通过所述子应用程序逻辑层处理单元并根据所述子应用程序页面逻辑代码响应所述事件的步骤包括:The method of claim 5 wherein said step of processing said unit by said sub-application logic layer and responding to said event based on said sub-application page logic code comprises:通过所述子应用程序逻辑层处理单元并根据所述子应用程序页面逻辑代码调用由所述母应用程序提供的应用程序编程接口响应所 述事件;或者,Responding to the application programming interface response provided by the parent application by the sub-application logic layer processing unit and according to the sub-application page logic code Event; or,通过所述子应用程序逻辑层处理单元并根据所述子应用程序页面逻辑代码调用由所述操作系统提供的应用程序编程接口响应所述事件。The event is processed by the sub-application logic layer processing unit and in response to the sub-application page logic code calling an application programming interface provided by the operating system.
- 根据权利要求5所述的方法,其中,所述通过所述子应用程序逻辑层处理单元并根据所述子应用程序页面逻辑代码响应所述事件的步骤包括:The method of claim 5 wherein said step of processing said unit by said sub-application logic layer and responding to said event based on said sub-application page logic code comprises:通过所述子应用程序逻辑层处理单元并根据所述子应用程序页面逻辑代码调用由所述母应用程序提供的应用程序编程接口,并通过由所述母应用程序提供的应用程序编程接口调用由所述操作系统提供的应用程序编程接口响应所述事件。Recalling, by the sub-application logic layer processing unit, an application programming interface provided by the parent application according to the sub-application page logic code, and calling by an application programming interface provided by the parent application An application programming interface provided by the operating system is responsive to the event.
- 根据权利要求1至7中任一项所述的方法,其中,所述子应用程序页面配置文件采用标记语言编写;所述子应用程序页面逻辑代码采用脚本语言编写;所述子应用程序逻辑层处理单元和所述子应用程序视图层处理单元之间通过由所述母应用程序提供的原生接口进行中转通信。The method according to any one of claims 1 to 7, wherein the sub-application page configuration file is written in a markup language; the sub-application page logic code is written in a scripting language; the sub-application logic layer The relay communication is performed between the processing unit and the sub-application view layer processing unit through a native interface provided by the parent application.
- 一种应用程序处理方法,应用于终端上的母应用程序,所述方法包括:An application processing method is applied to a parent application on a terminal, the method comprising:通过子应用程序视图层处理单元解析子应用程序页面配置文件,以获取由母应用程序提供的公共组件;其中,所述子应用程序视图层处理单元由运行于操作系统上的所述母应用程序所创建;Parsing the sub-application page configuration file through the sub-application view layer processing unit to obtain a common component provided by the parent application; wherein the sub-application view layer processing unit is executed by the parent application running on the operating system Created通过子应用程序逻辑层处理单元运行子应用程序页面逻辑代码得到页面数据,并将所述页面数据传递至所述子应用程序视图层处理单元;其中,所述子应用程序逻辑层处理单元由所述母应用程序所创建;Transmitting the page data by running the sub-application page logic code by the sub-application logic layer processing unit, and passing the page data to the sub-application view layer processing unit; wherein the sub-application logic layer processing unit is Created by the parent application;通过所述子应用程序视图层处理单元获取页面样式文件,并根据 所述页面数据、所述页面样式文件和所述公共组件渲染子应用程序页面。Obtaining a page style file through the sub-application view layer processing unit, and according to The page data, the page style file, and the common component render sub-application page.
- 一种应用程序处理装置,包括:An application processing device comprising:一个或一个以上存储器;One or more memories;一个或一个以上处理器;其中,One or more processors; among them,所述一个或一个以上存储器存储有一个或者一个以上指令模块,经配置由所述一个或者一个以上处理器执行;其中,The one or more memories storing one or more instruction modules configured to be executed by the one or more processors; wherein所述一个或者一个以上指令模块包括:The one or more instruction modules include:视图层模块,用于通过子应用程序视图层处理单元解析子应用程序页面配置文件,以获取由所述母应用程序提供的公共组件;其中,所述子应用程序视图层处理单元由运行于操作系统上的所述母应用程序所创建;a view layer module, configured to parse the sub-application page configuration file by the sub-application view layer processing unit to obtain a common component provided by the parent application; wherein the sub-application view layer processing unit is operated by the operation Created by the parent application on the system;逻辑层模块,用于通过子应用程序逻辑层处理单元运行子应用程序页面逻辑代码得到页面数据,并将所述页面数据传递至所述子应用程序视图层处理单元;其中,所述子应用程序逻辑层处理单元由所述母应用程序所创建;a logic layer module, configured to: obtain, by the sub-application logic layer processing unit, the sub-application page logic code to obtain page data, and pass the page data to the sub-application view layer processing unit; wherein the sub-application a logical layer processing unit is created by the parent application;所述视图层模块还用于通过所述子应用程序视图层处理单元获取页面样式文件,并根据所述页面数据、所述页面样式文件和所述公共组件渲染子应用程序页面。The view layer module is further configured to acquire a page style file by using the sub-application view layer processing unit, and render the sub-application page according to the page data, the page style file, and the common component.
- 根据权利要求10所述的装置,其中,所述装置还包括:The device of claim 10, wherein the device further comprises:处理单元管理模块,用于通过运行于操作系统上的母应用程序获取子应用程序标识;获取与所述子应用程序标识对应的子应用程序全局逻辑文件;根据所述子应用程序全局逻辑文件创建子应用程序逻辑层处理单元;获取与所述子应用程序标识对应的子应用程序全局配置文件;获取所述子应用程序全局配置文件所指定的子应用程序页面配 置文件;根据所述子应用程序页面配置文件创建子应用程序视图层处理单元。a processing unit management module, configured to acquire a sub-application identifier by using a parent application running on the operating system; acquire a sub-application global logic file corresponding to the sub-application identifier; and create a global logic file according to the sub-application a sub-application logic layer processing unit; obtaining a sub-application global configuration file corresponding to the sub-application identifier; acquiring a sub-application page specified by the sub-application global configuration file Set the file; create a sub-application view layer processing unit based on the sub-application page configuration file.
- 根据权利要求10所述的装置,其中,所述视图层模块还用于通过所述子应用程序视图层处理单元解析子应用程序页面配置文件,得到公共组件标识;在所述母应用程序所提供的公共组件库中,获取与所述公共组件标识对应的公共组件。The apparatus of claim 10, wherein the view layer module is further configured to parse the sub-application page configuration file by the sub-application view layer processing unit to obtain a common component identifier; provided by the parent application In the common component library, a common component corresponding to the common component identifier is obtained.
- 根据权利要求10所述的装置,其中,所述视图层模块还用于通过所述子应用程序视图层处理单元获取页面样式文件;从所述页面样式文件中获取与所述公共组件对应的组件样式数据;根据所述页面数据、所述公共组件和所述组件样式数据渲染子应用程序页面。The apparatus according to claim 10, wherein the view layer module is further configured to acquire a page style file by using the sub-application view layer processing unit; and acquire a component corresponding to the common component from the page style file Style data; rendering the sub-application page based on the page data, the common component, and the component style data.
- 根据权利要求10所述的装置,其中,所述视图层模块还用于通过所述子应用程序视图层处理单元获取针对所述子应用程序页面中公共组件所触发的事件,并将所述事件传递至所述子应用程序逻辑层处理单元;The apparatus according to claim 10, wherein the view layer module is further configured to acquire, by the sub-application view layer processing unit, an event triggered by a common component in the sub-application page, and the event Passed to the sub-application logic layer processing unit;所述逻辑层模块还用于通过所述子应用程序逻辑层处理单元并根据所述子应用程序页面逻辑代码响应所述事件,并将相应的事件响应数据传递至所述子应用程序视图层处理单元;The logic layer module is further configured to: respond to the event by the sub-application logic layer processing unit and according to the sub-application page logic code, and deliver corresponding event response data to the sub-application view layer processing unit;所述视图层模块还用于通过所述子应用程序视图层处理单元并根据所述事件响应数据更新所述子应用程序页面。The view layer module is further configured to update the sub-application page by using the sub-application view layer processing unit and according to the event response data.
- 根据权利要求14所述的装置,其中,所述逻辑层模块还用于通过所述子应用程序逻辑层处理单元并根据所述子应用程序页面逻辑代码调用由所述母应用程序提供的应用程序编程接口响应所述事件;或者,所述逻辑层模块还用于通过所述子应用程序逻辑层处理单元并根据所述子应用程序页面逻辑代码调用由所述操作系统提供的应用程序编程接口响应所述事件。The apparatus of claim 14, wherein the logic layer module is further configured to invoke, by the sub-application logic layer processing unit, an application provided by the parent application according to the sub-application page logic code The programming interface is responsive to the event; or the logic layer module is further configured to, by the sub-application logic layer processing unit, invoke an application programming interface response provided by the operating system according to the sub-application page logic code The event.
- 根据权利要求14所述的装置,其中,所述逻辑层模块还用 于通过所述子应用程序逻辑层处理单元并根据所述子应用程序页面逻辑代码调用由所述母应用程序提供的应用程序编程接口,并通过由所述母应用程序提供的应用程序编程接口调用由所述操作系统提供的应用程序编程接口响应所述事件。The apparatus of claim 14 wherein said logic layer module is further Calling the application programming interface provided by the parent application through the sub-application logic layer processing unit and according to the sub-application page logic code, and calling through an application programming interface provided by the parent application An application programming interface provided by the operating system is responsive to the event.
- 根据权利要求10至16中任一项所述的装置,其中,所述子应用程序页面配置文件采用标记语言编写;所述子应用程序页面逻辑代码采用脚本语言编写;所述子应用程序逻辑层处理单元和所述子应用程序视图层处理单元之间通过由所述母应用程序提供的原生接口进行中转通信。Apparatus according to any one of claims 10 to 16, wherein said sub-application page configuration file is written in a markup language; said sub-application page logic code is written in a scripting language; said sub-application logic layer The relay communication is performed between the processing unit and the sub-application view layer processing unit through a native interface provided by the parent application.
- 一种非易失性计算机可读存储介质,存储有计算机可读指令,可以使至少一个处理器执行如权利要求1-9任一项所述的方法。 A non-transitory computer readable storage medium storing computer readable instructions for causing at least one processor to perform the method of any of claims 1-9.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610972476.0A CN106569900B (en) | 2016-10-28 | 2016-10-28 | Applied program processing method and device |
CN201610972476.0 | 2016-10-28 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018077085A1 true WO2018077085A1 (en) | 2018-05-03 |
Family
ID=58539962
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/106654 WO2018077085A1 (en) | 2016-10-28 | 2017-10-18 | Application processing method, device and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106569900B (en) |
WO (1) | WO2018077085A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857374A (en) * | 2018-12-24 | 2019-06-07 | 航天信息软件技术有限公司 | The development approach and device of mobile application |
CN110471717A (en) * | 2019-08-21 | 2019-11-19 | 金瓜子科技发展(北京)有限公司 | A kind of data processing method and device |
CN111090431A (en) * | 2019-11-29 | 2020-05-01 | 亚信科技(南京)有限公司 | Data processing method and device |
CN111782180A (en) * | 2020-06-24 | 2020-10-16 | 智车优行科技(北京)有限公司 | Page generation method and device, electronic equipment and storage medium |
CN112230910A (en) * | 2019-07-15 | 2021-01-15 | 腾讯科技(深圳)有限公司 | Page generation method, device, equipment and storage medium of embedded program |
CN113778488A (en) * | 2021-09-14 | 2021-12-10 | 北京飞讯数码科技有限公司 | Page updating method and device, computer equipment and storage medium |
CN114020358A (en) * | 2021-11-08 | 2022-02-08 | 工银科技有限公司 | Interface rendering method and device based on iOS application |
Families Citing this family (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106569900B (en) * | 2016-10-28 | 2019-08-23 | 腾讯科技(深圳)有限公司 | Applied program processing method and device |
CN107102880B (en) | 2017-05-11 | 2018-11-23 | 腾讯科技(深圳)有限公司 | Message treatment method, device, storage medium and computer equipment |
CN107229526B (en) * | 2017-05-17 | 2019-03-01 | 腾讯科技(深圳)有限公司 | Message treatment method, device, storage medium and computer equipment in group session |
CN107239318B (en) * | 2017-06-13 | 2018-09-04 | 腾讯科技(深圳)有限公司 | Using conversion method, device and equipment |
CN107301220B (en) * | 2017-06-16 | 2020-12-11 | 百度在线网络技术(北京)有限公司 | Method, device and equipment for data driving view and storage medium |
CN109101225B (en) * | 2017-06-20 | 2021-08-06 | 腾讯科技(深圳)有限公司 | Component construction method and device, component library architecture and computer readable storage medium |
CN107357644B (en) | 2017-06-30 | 2018-10-16 | 腾讯科技(深圳)有限公司 | Applied program processing method, device, storage medium and computer equipment |
CN109542543B (en) * | 2017-09-21 | 2021-12-14 | 腾讯科技(深圳)有限公司 | Application page processing method and device, storage medium and computer equipment |
CN109933261A (en) * | 2017-12-18 | 2019-06-25 | 北京奇虎科技有限公司 | Exchange method, device and computer readable storage medium in live streaming application |
CN108681491B (en) * | 2018-05-04 | 2021-03-02 | 武汉极意网络科技有限公司 | File decoupling method and system |
CN108572825B (en) * | 2018-05-28 | 2021-11-16 | 郑州悉知信息科技股份有限公司 | User interface processing method, device and equipment |
CN109144478B (en) * | 2018-07-12 | 2022-02-25 | 北京猫眼文化传媒有限公司 | Component frame system and method of using the same |
CN109150676A (en) * | 2018-09-14 | 2019-01-04 | 杭州若奇技术有限公司 | Application coding, coding/decoding method and the device and application system of smart machine |
CN109343889A (en) * | 2018-09-28 | 2019-02-15 | 北京三快在线科技有限公司 | Operation processing method, device and the electronic equipment of application program |
CN109144615B (en) * | 2018-09-29 | 2022-05-10 | 北京城市网邻信息技术有限公司 | Information publishing method, device, equipment and storage medium |
CN109634599B (en) * | 2018-12-14 | 2020-05-19 | 北京字节跳动网络技术有限公司 | Page view display method, device, equipment and storage medium |
CN111427622B (en) * | 2018-12-24 | 2023-05-16 | 阿里巴巴集团控股有限公司 | Execution method and device of script codes in application program |
CN110597647B (en) * | 2019-09-16 | 2021-05-28 | 五八有限公司 | Message interception method and device, electronic equipment and storage medium |
CN113760362A (en) | 2020-06-03 | 2021-12-07 | 腾讯科技(深圳)有限公司 | Application program transplanting method, device, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103955466A (en) * | 2012-03-06 | 2014-07-30 | 北京奇虎科技有限公司 | Method and device for displaying document in browser |
CN104731598A (en) * | 2012-05-07 | 2015-06-24 | 北京奇虎科技有限公司 | Method and device for providing web browsing based on Webkit kernel |
US20150334159A1 (en) * | 2012-12-25 | 2015-11-19 | Beijing Qihoo Technology Company Limited | Method, System and Browser for Executing Active Object of Browser |
CN106569900A (en) * | 2016-10-28 | 2017-04-19 | 腾讯科技(深圳)有限公司 | Application processing method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530160A (en) * | 2013-10-21 | 2014-01-22 | 迈普通信技术股份有限公司 | Page loading method and device |
CN104516738A (en) * | 2014-12-15 | 2015-04-15 | 北京金和软件股份有限公司 | Integrated implementing method for development and release of APP |
CN105159999A (en) * | 2015-09-08 | 2015-12-16 | 百度在线网络技术(北京)有限公司 | Dynamic page displaying method and dynamic page displaying device |
CN106502736B (en) * | 2016-10-18 | 2018-04-06 | 腾讯科技(深圳)有限公司 | Applied program processing method and device |
-
2016
- 2016-10-28 CN CN201610972476.0A patent/CN106569900B/en active Active
-
2017
- 2017-10-18 WO PCT/CN2017/106654 patent/WO2018077085A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103955466A (en) * | 2012-03-06 | 2014-07-30 | 北京奇虎科技有限公司 | Method and device for displaying document in browser |
CN104731598A (en) * | 2012-05-07 | 2015-06-24 | 北京奇虎科技有限公司 | Method and device for providing web browsing based on Webkit kernel |
US20150334159A1 (en) * | 2012-12-25 | 2015-11-19 | Beijing Qihoo Technology Company Limited | Method, System and Browser for Executing Active Object of Browser |
CN106569900A (en) * | 2016-10-28 | 2017-04-19 | 腾讯科技(深圳)有限公司 | Application processing method and device |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857374A (en) * | 2018-12-24 | 2019-06-07 | 航天信息软件技术有限公司 | The development approach and device of mobile application |
CN109857374B (en) * | 2018-12-24 | 2023-03-24 | 航天信息软件技术有限公司 | Development method and device of mobile application |
CN112230910A (en) * | 2019-07-15 | 2021-01-15 | 腾讯科技(深圳)有限公司 | Page generation method, device, equipment and storage medium of embedded program |
CN112230910B (en) * | 2019-07-15 | 2023-09-15 | 腾讯科技(深圳)有限公司 | Page generation method, device and equipment of embedded program and storage medium |
CN110471717A (en) * | 2019-08-21 | 2019-11-19 | 金瓜子科技发展(北京)有限公司 | A kind of data processing method and device |
CN110471717B (en) * | 2019-08-21 | 2022-11-11 | 金瓜子科技发展(北京)有限公司 | Data processing method and device |
CN111090431A (en) * | 2019-11-29 | 2020-05-01 | 亚信科技(南京)有限公司 | Data processing method and device |
CN111090431B (en) * | 2019-11-29 | 2024-02-23 | 亚信科技(南京)有限公司 | Data processing method and device |
CN111782180A (en) * | 2020-06-24 | 2020-10-16 | 智车优行科技(北京)有限公司 | Page generation method and device, electronic equipment and storage medium |
CN113778488A (en) * | 2021-09-14 | 2021-12-10 | 北京飞讯数码科技有限公司 | Page updating method and device, computer equipment and storage medium |
CN113778488B (en) * | 2021-09-14 | 2024-02-06 | 北京飞讯数码科技有限公司 | Page updating method and device, computer equipment and storage medium |
CN114020358A (en) * | 2021-11-08 | 2022-02-08 | 工银科技有限公司 | Interface rendering method and device based on iOS application |
Also Published As
Publication number | Publication date |
---|---|
CN106569900B (en) | 2019-08-23 |
CN106569900A (en) | 2017-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018077085A1 (en) | Application processing method, device and storage medium | |
US11269696B2 (en) | Application processing method and apparatus | |
US11868785B2 (en) | Application program page processing method and device | |
US11119812B2 (en) | Method and device for processing application program page according to a common interface container | |
US11461111B2 (en) | Method for running applets, and electronic device | |
US10877826B2 (en) | Message processing method and apparatus, storage medium, and computer device | |
US10824691B2 (en) | Page rendering method, device, and data storage medium | |
WO2017206626A1 (en) | Network resource access apparatus, mixed apparatus, and method | |
US11822870B2 (en) | Customizable user interface layouts | |
US9104774B2 (en) | Consistent web application presentation | |
US9002808B1 (en) | Using a web application as the default handler of local content | |
CN112506854B (en) | Page template file storage and page generation methods, devices, equipment and media | |
US20200356469A1 (en) | Test automation systems and methods using logical identifiers | |
US20210334118A1 (en) | Opening local files in remote applications | |
US20190005228A1 (en) | Trusted and untrusted code execution in a workflow | |
CN112732386A (en) | Message processing method, device, terminal and storage medium | |
CN115309470B (en) | Method, device, equipment and storage medium for loading widget | |
US11294651B2 (en) | Code execution method, device, and rendering apparatus | |
CN112395027A (en) | Widget interface generation method and device, storage medium and electronic equipment | |
US9870116B1 (en) | Controlling actions for browser extensions | |
US11782881B2 (en) | Recommending remotely executed applications for opening files | |
CN113779122B (en) | Method and device for exporting data | |
US20150277723A1 (en) | Exporting a component of a currently displayed user interface to a development system | |
US20210374106A1 (en) | Using drag-and-drop to open local files remotely | |
EP4254293A1 (en) | Program, information processing apparatus, method for processing information |
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: 17865780 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: 17865780 Country of ref document: EP Kind code of ref document: A1 |