CN110806905B - User page processing method and device, electronic equipment and storage medium - Google Patents

User page processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110806905B
CN110806905B CN201911043885.2A CN201911043885A CN110806905B CN 110806905 B CN110806905 B CN 110806905B CN 201911043885 A CN201911043885 A CN 201911043885A CN 110806905 B CN110806905 B CN 110806905B
Authority
CN
China
Prior art keywords
page
message
user
user page
container control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911043885.2A
Other languages
Chinese (zh)
Other versions
CN110806905A (en
Inventor
罗树浩
赵宇杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201911043885.2A priority Critical patent/CN110806905B/en
Publication of CN110806905A publication Critical patent/CN110806905A/en
Application granted granted Critical
Publication of CN110806905B publication Critical patent/CN110806905B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Abstract

The disclosure relates to a user page processing method and device, electronic equipment and a computer readable storage medium, and belongs to the technical field of internet. The method comprises the following steps: when detecting that a user page in a first screen interface is refreshed, a first process sends a rendering message to a second process, wherein the rendering message comprises data to be rendered in the user page; rendering the data to be rendered through a container control in a second screen interface by a second process, wherein the container control and the user page are identical in shape and size, and the size of the user page is smaller than that of the first screen interface; the second process displays the rendered data via the container control. The method and the device can avoid blockage of other interfaces when the user page is loaded, and improve user experience.

Description

User page processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a user page processing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
At present, the android version and the model fragmentation are serious, so that the stability of a webview browser of an android primary sound is poor, and the problems of blocking, stopping working and the like easily occur. The webview is a control in an android and can be used for showing a web page.
In order to avoid the situation that the application exits due to stop working of the webview when browsing the page, a flag may be set for the Activity loading the webview, which indicates that the process of the Activity is isolated from the process of the application, and the process of the application is not affected. Activity is an android application component that provides a screen through which a user can interact to perform certain operations. However, after loading the webview, the functions of the application are not available, and the user experience is poor.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure is directed to a user page processing method and apparatus, an electronic device, and a computer-readable storage medium, which overcome, at least to some extent, the problems of unavailability of functions of other interfaces when loading a page due to the limitations and disadvantages of the related art.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to an aspect of the present disclosure, there is provided a user page processing method, the method including:
when detecting that a user page in a first screen interface is refreshed, a first process sends a rendering message to a second process, wherein the rendering message comprises data to be rendered in the user page;
the second process renders the data to be rendered through a container control in a second screen interface, the shape and the size of the container control are the same as those of the user page, and the size of the user page is smaller than that of the first screen interface;
and the second process displays the rendered data through the container control.
In an exemplary embodiment of the present disclosure, the user page processing method further includes:
the second process responds to the page loading instruction and sends the corresponding page loading message to the first process;
and the first process loads a page in the user page according to the page identifier to be loaded extracted from the page loading message.
In an exemplary embodiment of the present disclosure, the user page processing method further includes:
the second process responds to a screen instruction and sends a screen message corresponding to the screen instruction to the first process;
and the first process carries out corresponding processing on the user page according to the screen message.
In an exemplary embodiment of the present disclosure, the user page processing method further includes:
the second process responds to the page closing instruction and sends the corresponding page closing message to the first process;
and the first process responds to the page closing message and deletes the user page.
In an exemplary embodiment of the disclosure, after the second process responds to a close page instruction, the method further comprises:
the second process closes the container control.
In an exemplary embodiment of the disclosure, the container control is created by the second process from the user page.
In an exemplary embodiment of the present disclosure, the shape of the user page includes: regular shapes and irregular shapes.
According to an aspect of the present disclosure, there is provided a user page processing apparatus, the apparatus including:
the system comprises a rendering message sending module, a rendering message sending module and a rendering message sending module, wherein the rendering message sending module is used for sending a rendering message to a second process when a first process detects that a user page in a first screen interface is refreshed, and the rendering message comprises data to be rendered in the user page;
the rendering module is used for rendering the data to be rendered through a container control in a second screen interface by the second process, the container control and the user page are identical in shape and size, and the size of the user page is smaller than that of the first screen interface;
and the page display module is used for displaying the rendered data through the container control by the second process.
In an exemplary embodiment of the present disclosure, the apparatus further includes:
the page loading message sending module is used for responding to the page loading instruction by the second process and sending the corresponding page loading message to the first process;
and the page loading module is used for the first process to load a page in the user page according to the page identifier to be loaded extracted from the page loading message.
In an exemplary embodiment of the present disclosure, the apparatus further includes:
the screen message sending module is used for responding to a screen instruction by the second process and sending the screen message corresponding to the screen instruction to the first process;
and the page processing module is used for the first process to correspondingly process the user page according to the screen message.
In an exemplary embodiment of the present disclosure, the apparatus further includes:
a page closing message sending module, configured to send, by the second process, a corresponding page closing message to the first process in response to the page closing instruction;
and the page closing module is used for responding to the page closing message by the first process and deleting the user page.
In an exemplary embodiment of the present disclosure, the apparatus further includes:
and the container control closing module is used for closing the container control by the second process.
In an exemplary embodiment of the disclosure, the container control is created by the second process from the user page.
In an exemplary embodiment of the present disclosure, the shape of the user page includes: regular shapes and irregular shapes.
According to an aspect of the present disclosure, there is provided an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the method of any one of the above via execution of the executable instructions.
According to an aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any one of the above.
Exemplary embodiments of the present disclosure have the following advantageous effects:
in the user page processing method and device provided by the exemplary embodiment of the disclosure, the container control in the second process can render the data to be rendered in the user page in the first process in a communication manner between the first process and the second process, and display the rendered data. Therefore, when the page is displayed through the container control, the user can interact with other controls except the container control in the second screen interface, so that the functions of the other controls in the second screen interface are not influenced, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
FIG. 1 is a schematic diagram illustrating a position relationship between an original interface and an activity interface;
FIG. 2 illustrates a flow chart of a user page processing method of an embodiment of the present disclosure;
FIG. 3 illustrates a schematic structural diagram of a first screen interface and a second screen interface in an embodiment of the disclosure;
FIG. 4 illustrates a flow diagram of an interaction between a first process and a second process of an embodiment of the disclosure;
FIG. 5 is a schematic structural diagram of a user page processing apparatus according to an embodiment of the present disclosure;
fig. 6 shows a schematic structural diagram of a computer system of an electronic device for implementing an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In the present disclosure, the terms "include", "arrange", "disposed" and "disposed" are used to mean open-ended inclusion, and mean that there may be additional elements/components/etc. in addition to the listed elements/components/etc.; the terms "first," "second," and the like are used merely as labels, and are not limiting as to the number or order of their objects.
In the current market, versions of android are distributed, and a plurality of versions are used from 4.x to 9. x. In addition, mobile phone manufacturers at home and abroad are numerous, and different manufacturers can modify the read-only memory of the android native system to different degrees under common conditions, so that personalized customization of brands is realized. Therefore, the situation of fragmentation of android versions and models is very serious. In addition, the content of the web page changes more, and with the development of front-end technology, the complexity of page implementation is higher and higher, resulting in lower stability of webview. In order to improve the stability of the webview and improve the user experience, a multi-process webview implementation scheme can be adopted at present, so that the Activity loaded with the webview runs in a sub-process, is isolated from an applied main process, and does not influence the main process. This solution presents the following problems:
since the webview is loaded with the Activity interface as a container, when the webview is loaded, and the user interacts, Activity is also loaded. Referring to fig. 1, at this time, the original interface of the application is blocked by the new activity, and enters an unavailable state. The original functions of the application may be affected, for example, animation playback, video playback, etc. may be stopped or blocked.
In order to solve the above problem, embodiments of the present disclosure provide a user page processing method and apparatus, an electronic device, and a computer-readable storage medium, which may not affect functions in other interfaces when loading a user page in a current interface, and improve user experience.
The technical solution of the embodiment of the present disclosure is explained in detail below:
referring to fig. 2, fig. 2 shows a flowchart of a user page processing method according to an embodiment of the present disclosure, which may include the following steps:
step S210, when detecting that the user page in the first screen interface is refreshed, the first process sends a rendering message to the second process, wherein the rendering message comprises data to be rendered in the user page.
And step S220, rendering the data to be rendered by the second process through the container control in the second screen interface, wherein the shape and the size of the container control are the same as those of the user page, and the size of the user page is smaller than that of the first screen interface.
In step S230, the second process displays the rendered data through the container control.
According to the user page processing method in the embodiment of the disclosure, the container control in the second process can render the data to be rendered in the user page in the first process in a communication mode between the first process and the second process, and the rendered data is displayed. Therefore, when the page is displayed through the container control, the user can interact with other controls except the container control in the second screen interface, so that the functions of the other controls in the second screen interface are not influenced, and the user experience is improved.
In the embodiment of the present disclosure, the display of the user page may be implemented in an inter-process communication manner, for example, the communication may be between a first process and a second process in the terminal device, and the first process and the second process may be a sub-process and a main process, respectively. The terminal device can be a smart phone, a tablet computer and the like.
First, the first process and the second process may be initialized separately. For a first process, a first screen interface may be created in the first process, the first screen interface may be loaded as a container of user pages, and a user may interact through the first screen interface to perform certain operations. The size of the first screen interface is generally the same as that of a display interface of the terminal device, the user page refers to a webpage browsed by a user, the shape of the user page can be set in different shapes according to the user requirements, and the shape of the user page comprises: regular shapes and irregular shapes. For example, the regular shape may be a rectangle, a circle, or the like, and the irregular shape may be any irregular shape, which is not limited herein.
Similarly, the second screen interface can be a container load of controls in the second screen interface, the second screen interface running in a second process. It should be noted that, similar to the first screen interface, the size of the second screen interface is generally the same as the size of the display interface of the terminal device. That is, in a general case, the sizes of the first screen interface and the second screen interface are the same as the size of the display interface of the terminal device. The second process may create a container control with the same shape and size as the user page according to the shape of the user page in the first process, that is, the container control is created by the second process according to the user page. Since the container control belongs to the child control, the shape of the container control may be irregular. Referring to fig. 3, fig. 3 shows a schematic structural diagram of the first screen interface and the second screen interface in the embodiment of the present disclosure, and it can be seen that the size and the shape of the container control in the second screen interface are the same as those of the user page in the first screen interface.
It should be noted that, when the user page in the first process is started, the first screen interface may be hidden, so that the first screen interface does not shield the second screen interface, and the user may still interact with the control in the second screen interface, so that the function in the second screen interface is not affected.
After initialization, inter-process communication may be performed, and the data format transmitted during communication may include: the message type, the message length, the specific data carried by the message, etc. are expressed as follows:
Figure BDA0002253598990000071
the message types before the first process and the second process include, but are not limited to, CMD _ register _ DATA, CMD _ SCREEN _ EVENT, CMD _ LOAD _ URL, and CMD _ CLOSE _ view, and the corresponding values of the message types may be 1, 2, 3, and 4, respectively. That is, different message types may be represented by different numerical values, which will be described in detail below. The bytes occupied by the message type may be 4 bytes, 8 bytes, etc., the bytes occupied by the message length may also be 4 bytes, 8 bytes, etc., and the bytes occupied by the specific data carried by the message may be the actual bytes occupied by the specific data, or may be the bytes of a preset fixed length, which is not limited herein.
The communication flow between the first process and the second process is described in detail below.
Referring to fig. 4, fig. 4 shows a flowchart of an interaction between a first process and a second process of an embodiment of the present disclosure, including the steps of:
step S410, when detecting that the user page in the first screen interface is refreshed, the first process sends a rendering message to the second process, wherein the rendering message comprises data to be rendered in the user page.
In the embodiment of the present disclosure, the first screen interface refers to an interface where a user page is located, for example, a webview is loaded with an Activity interface as a container, the first screen interface may be an Activity interface, and the user page may be a web page. When a user browses a web page, the web page can be refreshed, data to be rendered are generated in the refreshing process, and the page can be displayed after the data to be rendered are rendered.
If the first process directly renders the data to be rendered and displays the page according to the method in the related art, the function in the second screen interface is unavailable. Therefore, in the embodiment of the present disclosure, when detecting that the web page is refreshed, the first process may send a rendering message to the second process, where the rendering message carries data to be rendered, so that the second process renders the data to be rendered. The message type of the rendering message may be CMD _ RENDER _ DATA, and the specific DATA carried by the rendering message is the DATA to be rendered.
Step S420, rendering the data to be rendered through the container control in the second screen interface by the second process, and displaying the rendered data through the container control.
In the embodiment of the present disclosure, the second process may query whether a message sent by the first process is received in a polling manner. And after receiving the rendering message, rendering the data to be rendered through the container control, and displaying the rendered data. That is, the user page in the first process may actually be displayed through the container control in the second process. It should be noted that the size of the user page may be smaller than the size of the first screen interface, and correspondingly, the size of the container control may also be smaller than the size of the second screen interface. Other controls may also be included in the second screen interface, and the user may still interact with the other controls in the second screen interface. Therefore, the functions of other controls in the second screen interface can not be influenced while the page is displayed.
In step S430, the second process responds to the page loading instruction and sends a corresponding page loading message to the first process.
And in the process of browsing the web page, the user can load a new web page by interacting with the second screen interface. When the user interacts with the second screen interface, the second process may receive a load page instruction, where the instruction includes an identifier of a page to be loaded. The page identifier to be loaded can be a uniform resource locator, the uniform resource locator is a concise representation of the position and the access method of the resource which can be obtained from the internet, and is an address of a standard resource on the internet, and each file on the internet has a unique uniform resource locator.
After receiving the page loading instruction, the second process may use the page identifier to be loaded carried in the page loading instruction as specific data carried in the page loading message, where the message type of the page loading message may be CMD _ LOAD _ URL. After the load page message is constructed, the load page message may be sent to the first process.
Step S440, the first process loads a page in the user page according to the page identifier to be loaded extracted from the page loading message.
Specifically, the first process may also query whether a message sent by the second process is received in a polling manner. After receiving the page loading message, the first process may extract the page identifier to be loaded from the page loading message, and load the page according to the page identifier to be loaded. The page may be loaded directly, for example, based on the extracted uniform resource locator.
Step S450, the second process responds to the screen instruction, and sends the screen message corresponding to the screen instruction to the first process.
In the process of browsing the web page, the user can also perform operations such as touch and slide on the page displayed in the container control of the second screen interface. At this time, the second process may receive a screen instruction, where the screen instruction carries a screen event, for example, the screen event includes: touch events, slide events, etc. The second process may take the SCREEN EVENT as specific data carried by the SCREEN message, and the message type of the SCREEN message may be CMD _ SCREEN _ EVENT.
Step S460, the first process performs corresponding processing on the user page according to the screen message.
After receiving the screen message, the first process may extract a screen event carried in the screen message, and perform corresponding processing on the user page according to the screen event. For example, if the screen event is a slide event, the first process may perform a slide process on the page.
In step S470, the second process responds to the page closing instruction, and sends a corresponding page closing message to the first process.
The user may also close the page displayed in the container control when the user does not need to browse the web page. The second process may close the container control after receiving the close page instruction. The container control will no longer display the page content. And the second process may send a CLOSE page message to the first process, where the message type of the CLOSE page message may be CMD _ CLOSE _ WEBVIEW, and the specific data carried in the CLOSE page message may be "exit", or the like.
In step S480, the first process deletes the user page in response to the close page message.
In the embodiment of the disclosure, after receiving the message of closing the page, the first process may delete the user page in the first screen interface, and may also exit the first screen interface loading the user page from the first process.
Therefore, according to the user page processing method in the embodiment of the disclosure, the container control in the second process can render the data to be rendered in the user page in the first process in a communication manner between the first process and the second process, and display the rendered data. Therefore, when the page is displayed through the container control, the user can interact with other controls except the container control in the second screen interface, so that the functions of the other controls in the second screen interface are not influenced, and the user experience is improved. Also, the present disclosure may implement irregular shaped user pages.
It should be noted that although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order or that all of the depicted steps must be performed to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken into multiple step executions, etc.
Further, in this example embodiment, there is also provided a user page processing apparatus 500, referring to fig. 5, fig. 5 shows a schematic structural diagram of a user page processing apparatus according to an embodiment of the present disclosure, including:
a rendering message sending module 510, configured to send a rendering message to a second process when the first process detects that a user page in the first screen interface is refreshed, where the rendering message includes data to be rendered in the user page;
the rendering module 520 is configured to render the data to be rendered by the second process through the container control in the second screen interface, where the container control and the user page have the same shape and size, and the size of the user page is smaller than that of the first screen interface;
and a page display module 530, configured to display the rendered data through the container control by the second process.
In an exemplary embodiment of the present disclosure, the user page processing apparatus further includes:
the page loading message sending module is used for responding to the page loading instruction by the second process and sending the corresponding page loading message to the first process;
and the page loading module is used for the first process to load the page in the user page according to the page identifier to be loaded extracted from the page loading message.
In an exemplary embodiment of the present disclosure, the user page processing apparatus further includes:
the screen message sending module is used for responding to the screen instruction by the second process and sending the screen message corresponding to the screen instruction to the first process;
and the page processing module is used for the first process to correspondingly process the user page according to the screen message.
In an exemplary embodiment of the present disclosure, the user page processing apparatus further includes:
the page closing message sending module is used for the second process to respond to the page closing instruction and send the corresponding page closing message to the first process;
and the page closing module is used for responding to the page closing message by the first process and deleting the user page.
In an exemplary embodiment of the present disclosure, the user page processing apparatus further includes:
and the container control closing module is used for closing the container control by the second process.
In an exemplary embodiment of the disclosure, the container control is created by the second process from the user page.
In an exemplary embodiment of the present disclosure, the shape of the user page includes: regular shapes and irregular shapes.
The specific details of each module/unit in the above-mentioned apparatus have already been described in detail in the embodiments of the method portion, and thus are not described again.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In an exemplary embodiment of the present disclosure, there is also provided an electronic device including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the method of any of the example embodiments.
Fig. 6 shows a schematic structural diagram of a computer system of an electronic device for implementing an embodiment of the present disclosure. It should be noted that the computer system 600 of the electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments of the present disclosure.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for system operation are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a Local Area Network (LAN) card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. When the computer program is executed by a Central Processing Unit (CPU)601, various functions defined in the apparatus of the present application are executed.
In an exemplary embodiment of the disclosure, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any one of the above.
It should be noted that the computer readable storage medium shown in the present disclosure can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, radio frequency, etc., or any suitable combination of the foregoing.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (10)

1. A user page processing method is characterized by comprising the following steps:
when detecting that a user page in a first screen interface is refreshed, a first process sends a rendering message to a second process, wherein the rendering message comprises data to be rendered in the user page;
the second process renders the data to be rendered through a container control in a second screen interface, the container control and the user page are identical in shape and size, and the size of the user page is smaller than that of the first screen interface;
and the second process displays the rendered data through the container control, so that a user interacts with other controls except the container control in the second screen interface while displaying a page through the container control.
2. The method of claim 1, further comprising:
the second process responds to the page loading instruction and sends the corresponding page loading message to the first process;
and the first process loads a page in the user page according to the page identifier to be loaded extracted from the page loading message.
3. The method of claim 1, further comprising:
the second process responds to a screen instruction and sends a screen message corresponding to the screen instruction to the first process;
and the first process carries out corresponding processing on the user page according to the screen message.
4. The method of claim 1, further comprising:
the second process responds to the page closing instruction and sends the corresponding page closing message to the first process;
and the first process responds to the page closing message and deletes the user page.
5. The method of claim 4, wherein after the second process responds to a close page instruction, the method further comprises:
the second process closes the container control.
6. The method of claim 1, wherein the container control is created by the second process from the user page.
7. The method of claim 1, wherein the shape of the user page comprises: regular shapes and irregular shapes.
8. A user page processing apparatus, characterized in that the apparatus comprises:
the system comprises a rendering message sending module, a rendering message sending module and a rendering message sending module, wherein the rendering message sending module is used for sending a rendering message to a second process when a first process detects that a user page in a first screen interface is refreshed, and the rendering message comprises data to be rendered in the user page;
the rendering module is used for rendering the data to be rendered through a container control in a second screen interface by the second process, the container control and the user page are identical in shape and size, and the size of the user page is smaller than that of the first screen interface;
and the page display module is used for displaying the rendered data through the container control by the second process so that a user interacts with other controls except the container control in the second screen interface while displaying a page through the container control.
9. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1-7 via execution of the executable instructions.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 7.
CN201911043885.2A 2019-10-30 2019-10-30 User page processing method and device, electronic equipment and storage medium Active CN110806905B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911043885.2A CN110806905B (en) 2019-10-30 2019-10-30 User page processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911043885.2A CN110806905B (en) 2019-10-30 2019-10-30 User page processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110806905A CN110806905A (en) 2020-02-18
CN110806905B true CN110806905B (en) 2022-09-30

Family

ID=69489759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911043885.2A Active CN110806905B (en) 2019-10-30 2019-10-30 User page processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110806905B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113837918A (en) * 2020-06-23 2021-12-24 北京字节跳动网络技术有限公司 Method and device for realizing rendering isolation by multiple processes
CN113051015B (en) * 2021-03-30 2024-01-09 北京达佳互联信息技术有限公司 Page rendering method and device, electronic equipment and storage medium
CN113312117A (en) * 2021-05-31 2021-08-27 上海万物新生环保科技集团有限公司 Method and equipment for detecting page transmission performance
CN113407292B (en) * 2021-08-16 2022-02-22 北京蔚领时代科技有限公司 UI data processing system
CN113805989B (en) * 2021-08-20 2024-03-26 深圳瞬玩科技有限公司 Marketing input end distinguishing method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268019A (en) * 2014-09-23 2015-01-07 广州金山网络科技有限公司 Software operating method and device and terminal
US9070211B1 (en) * 2012-10-18 2015-06-30 Google Inc. Webview tag for a sandboxed multiprocess browser
CN104951326A (en) * 2014-03-31 2015-09-30 腾讯科技(深圳)有限公司 Web access method and device
CN105630507A (en) * 2015-12-29 2016-06-01 Tcl集团股份有限公司 Method and device for drawing WebView control interface
CN106021283A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Terminal and page loading method based on terminal
CN108182060A (en) * 2018-01-31 2018-06-19 北京腾云天下科技有限公司 Point methods, mobile terminal and system are buried in a kind of mixing application
CN110020292A (en) * 2017-10-13 2019-07-16 华为技术有限公司 Webpage content extracting method and terminal device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9070211B1 (en) * 2012-10-18 2015-06-30 Google Inc. Webview tag for a sandboxed multiprocess browser
CN104951326A (en) * 2014-03-31 2015-09-30 腾讯科技(深圳)有限公司 Web access method and device
CN104268019A (en) * 2014-09-23 2015-01-07 广州金山网络科技有限公司 Software operating method and device and terminal
CN105630507A (en) * 2015-12-29 2016-06-01 Tcl集团股份有限公司 Method and device for drawing WebView control interface
CN106021283A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Terminal and page loading method based on terminal
CN110020292A (en) * 2017-10-13 2019-07-16 华为技术有限公司 Webpage content extracting method and terminal device
CN108182060A (en) * 2018-01-31 2018-06-19 北京腾云天下科技有限公司 Point methods, mobile terminal and system are buried in a kind of mixing application

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Hybrid模式多进程实践;weixin_34404393;《https://blog.csdn.net/weixin_34404393/article/details/88007376》;20180911;全文 *
手机QQ Hybrid 的架构演进;互联网架构;《https://blog.csdn.net/emprere/article/details/98858578》;20170331;全文 *

Also Published As

Publication number Publication date
CN110806905A (en) 2020-02-18

Similar Documents

Publication Publication Date Title
CN110806905B (en) User page processing method and device, electronic equipment and storage medium
JP6740373B2 (en) Page component dynamic layout
US11706331B2 (en) Information processing method and apparatus, storage medium, and electronic device
CN107741844B (en) Method and device for generating application installation package
US20140222947A1 (en) Method and apparatus for browsings webpages, and storage medium
CN111158686B (en) Webpage popup frame generation method and device, electronic equipment and storage medium
CN110321177B (en) Mobile application localized loading method and device and electronic equipment
CN111309216B (en) List page display method and device, computer equipment and storage medium
US11314391B2 (en) Navigation bar controlling method and terminal
CN105955714A (en) Mixed development front end MVC frame implementation method and system
CN110764680B (en) Method and device for generating simulated keyboard, electronic equipment and computer readable medium
TW201904303A (en) Television program playing method and related terminal device
CN115309470B (en) Method, device, equipment and storage medium for loading widget
CN106528120A (en) Notification message display method and device
CN108319474B (en) Page information generation method, device and equipment
CN111125595A (en) Multi-page control method and device, electronic equipment and storage medium
CN110572815A (en) Network access method, device, storage medium and terminal
CN113778581A (en) Page loading method, electronic equipment and storage medium
CN109918598B (en) Web page rendering method based on Android television browser
US20210185109A1 (en) Page presentation method and system, computer system, and computer readable medium
CN109800044B (en) HTML5 double-screen application method and device and electronic equipment
WO2022237310A1 (en) Method and apparatus for displaying text message, electronic device, and storage medium
CN108228284B (en) Window display method and terminal
CN113950043B (en) Communication method, device, storage medium and terminal
CN114780888A (en) Webpage picture generation method and system, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant