CN111897533A - Page output method and device, electronic equipment and storage medium - Google Patents

Page output method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111897533A
CN111897533A CN202010762811.0A CN202010762811A CN111897533A CN 111897533 A CN111897533 A CN 111897533A CN 202010762811 A CN202010762811 A CN 202010762811A CN 111897533 A CN111897533 A CN 111897533A
Authority
CN
China
Prior art keywords
node
page
target
nodes
preset
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.)
Pending
Application number
CN202010762811.0A
Other languages
Chinese (zh)
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202010762811.0A priority Critical patent/CN111897533A/en
Publication of CN111897533A publication Critical patent/CN111897533A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • 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/451Execution arrangements for user interfaces

Abstract

A method of page output, the method comprising: when a loading instruction for a target page is received, acquiring all nodes of the target page; determining a target node from all the nodes; acquiring regional information of the target node; classifying the target nodes according to the regional information to obtain merging nodes, deleting nodes and normal nodes; generating a preview page according to the merging node, the deleting node and the normal node; and outputting the preview page to wait for the target page to be loaded. The invention also provides a page output device, electronic equipment and a storage medium. The invention can improve the loading speed of the page.

Description

Page output method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a page output method and apparatus, an electronic device, and a storage medium.
Background
At present, before a page is loaded, a preview page can be generated first, so that the user experience is improved, but in practice, it is found that the preview page needs a developer to write the preview page, so that the development efficiency is reduced, meanwhile, the existence of the preview page also increases the volume of an application program, and for a relatively complex page, the loading speed of the preview page is not high, for example: the advertisement page needs to load more resources due to a large amount of images and animation rendering, so that the loading speed is slow; as another example, a financial data (e.g., enterprise risk data) analysis page may also require more resources to be loaded due to the visualization of large amounts of data, resulting in slow loading.
Therefore, how to increase the loading speed of the page is a technical problem which needs to be solved urgently.
Disclosure of Invention
In view of the above, it is desirable to provide a page output method, device, electronic device and storage medium, which can improve the loading speed of a page.
A first aspect of the present invention provides a page output method, including:
when a loading instruction for a target page is received, acquiring all nodes of the target page;
determining a target node from all the nodes;
acquiring regional information of the target node;
classifying the target nodes according to the regional information to obtain merging nodes, deleting nodes and normal nodes;
generating a preview page according to the merging node, the deleting node and the normal node;
and outputting the preview page to wait for the target page to be loaded.
In a possible implementation manner, the area information includes an area height and an area width, and classifying the target node according to the area information includes:
judging whether the area height of the target node is greater than a first preset height or not, and judging whether the area width of the target node is greater than a first preset width or not;
and if the area height of the target node is greater than a first preset area height, or the area width of the target node is greater than a first preset area width, determining that the target node is a deleted node.
In a possible implementation manner, the page output method further includes:
if the area height of the target node is smaller than or equal to a first preset height and the area width of the target node is smaller than or equal to a first preset width, judging whether the area height of the target node is larger than a second preset height and judging whether the area width of the target node is larger than the second preset width;
and if the area height of the target node is greater than a second preset height and the area width of the target node is greater than a second preset width, determining that the target node is a normal node.
In a possible implementation manner, the page output method further includes:
if the area height of the target node is smaller than or equal to a second preset height, or the area width of the target node is smaller than or equal to a second preset width, determining the target node as a node to be merged;
judging whether a node to be merged exists in the adjacent node of the node to be merged;
if the node to be merged exists in the adjacent node of the node to be merged, determining the node to be merged as a merged node; or
And if the node to be merged does not exist in the adjacent node of the node to be merged, determining the node to be merged as a deleted node.
In a possible implementation manner, the generating a preview page according to the merge node, the delete node, and the normal node includes:
for all the merging nodes, merging the adjacent merging nodes into one integrated node;
deleting the deleted node;
and filling the preview content for the integration node and the normal node to obtain a preview page.
In one possible implementation, the determining a target node from the all nodes includes:
determining a node identification for each of the nodes;
judging whether the node identification is a preset node identification or not;
and if the node identification is a preset node identification, determining that the node is a target node.
In a possible implementation manner, after the outputting the preview page, the page output method further includes:
when the target page is detected to be completely loaded, deleting the preview page;
and outputting the target page.
A second aspect of the present invention provides a page output apparatus, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring all nodes of a target page when a loading instruction aiming at the target page is received;
a determining module, configured to determine a target node from all the nodes;
the acquisition module is further configured to acquire regional information of the target node;
the classification module is used for classifying the target nodes according to the regional information to obtain merged nodes, deleted nodes and normal nodes;
the generating module is used for generating a preview page according to the merging node, the deleting node and the normal node;
and the output module is used for outputting the preview page so as to wait for the target page to be loaded.
A third aspect of the invention provides an electronic device comprising a processor and a memory, the processor being configured to implement the page output method when executing a computer program stored in the memory.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the page output method.
By the technical scheme, the preview page can be generated according to the node information of the loaded page when the page is loaded, and meanwhile, part of nodes can be deleted or combined to generate the preview page more quickly.
Drawings
FIG. 1 is a flowchart illustrating a page output method according to an embodiment of the present invention.
FIG. 2 is a functional block diagram of a page output device according to a preferred embodiment of the present invention.
FIG. 3 is a schematic structural diagram of an electronic device implementing a page output method according to a preferred embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
The page output method of the embodiment of the invention is applied to the electronic equipment, and can also be applied to a hardware environment formed by the electronic equipment and a server connected with the electronic equipment through a network, and the server and the electronic equipment are jointly executed. Networks include, but are not limited to: a wide area network, a metropolitan area network, or a local area network.
A server may refer to a computer system that provides services to other devices (e.g., electronic devices) in a network. A personal computer may also be called a server if it can externally provide a File Transfer Protocol (FTP) service. In a narrow sense, a server refers to a high-performance computer, which can provide services to the outside through a network, and compared with a common personal computer, the server has higher requirements on stability, security, performance and the like, and therefore, hardware such as a CPU, a chipset, a memory, a disk system, a network and the like is different from that of the common personal computer.
The electronic device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware thereof includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like. The electronic device may also include a network device and/or a user device. The network device includes, but is not limited to, a single network device, a server group consisting of a plurality of network devices, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of hosts or network devices, wherein the Cloud Computing is one of distributed Computing, and is a super virtual computer consisting of a group of loosely coupled computers. The user device includes, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), or the like.
Referring to fig. 1, fig. 1 is a flowchart illustrating a page output method according to a preferred embodiment of the present invention. The order of the steps in the flowchart may be changed, and some steps may be omitted. The execution subject of the page output method may be an electronic device.
S11, when a loading instruction aiming at the target page is received, all nodes of the target page are obtained.
Wherein the nodes may be respective tags constituting the target page, such as < div >, < p >, and < img >, etc.
And S12, determining a target node from all the nodes.
Specifically, the determining the target node from the all nodes includes:
determining a node identification for each of the nodes;
judging whether the node identification is a preset node identification or not;
and if the node identification is a preset node identification, determining that the node is a target node.
The target nodes may be main content display nodes in a web page, and node identifiers may be preset for the target nodes.
Wherein the node identification may be a character in a class (class) or an identity (id) of the node. The setting may be made in advance.
In this alternative embodiment, the node identifiers of all nodes may be read and determined, and the node having the preset node identifier may be determined as the target node.
And S13, acquiring the area information of the target node.
The area information includes an area height and an area width, and the area height and the area width may be obtained by accessing attribute information of the target node.
And S14, classifying the target nodes according to the regional information to obtain merged nodes, deleted nodes and normal nodes.
The merge node may refer to a new node generated by merging existing nodes; the deleting node may refer to a node that needs to be deleted; the normal node may refer to a node that temporarily does not require further processing.
Specifically, the area information includes an area height and an area width, and classifying the target node according to the area information includes:
judging whether the area height of the target node is greater than a first preset height or not, and judging whether the area width of the target node is greater than a first preset width or not;
and if the area height of the target node is greater than a first preset area height, or the area width of the target node is greater than a first preset area width, determining that the target node is a deleted node.
In this optional embodiment, the area information includes an area height and an area width, and if the area height of the target node is greater than a first preset height, or if the area width of the target node is greater than a first preset width, it is determined that the content of the target node may be invisible content (for example, used for nesting other nodes, playing a fixing role or a positioning role, etc.), or the content of the target node may also be background content, etc. The target node may be determined to be a deleted node, that is, the target node does not need to perform preview processing.
As an optional implementation manner, the page output method further includes:
if the area height of the target node is smaller than or equal to a first preset height and the area width of the target node is smaller than or equal to a first preset width, judging whether the area height of the target node is larger than a second preset height and judging whether the area width of the target node is larger than the second preset width;
and if the area height of the target node is greater than a second preset height and the area width of the target node is greater than a second preset width, determining that the target node is a normal node.
The second preset height is smaller than the first preset height, and the second preset width is smaller than the first preset width.
In this optional embodiment, if the area height of the target node is less than or equal to a first preset height, and the area width of the target node is less than or equal to the first preset width, it is further required to further determine whether the area height of the target node is greater than a second preset height, and determine whether the area width of the target node is greater than the second preset width, and if the area height of the target node is greater than the second preset height, and the area width of the target node is greater than the second preset width, it is determined that the content to be displayed exists in the target node. The target node may be determined to be a normal node.
As an optional implementation manner, the page output method further includes:
if the area height of the target node is smaller than or equal to a second preset height, or the area width of the target node is smaller than or equal to a second preset width, determining the target node as a node to be merged;
judging whether a node to be merged exists in the adjacent node of the node to be merged;
if the node to be merged exists in the adjacent node of the node to be merged, determining the node to be merged as a merged node; or
And if the node to be merged does not exist in the adjacent node of the node to be merged, determining the node to be merged as a deleted node.
In this optional embodiment, if the area height of the target node is less than or equal to a second preset height, or the area width of the target node is less than or equal to a second preset width, it is determined that the content displayed on the page by the target node is very little, the target node may be determined as a node to be merged, and if an adjacent node of the node to be merged is a node to be merged, the node to be merged is determined as a merged node, and the merged node may be merged into one node. The display contents of a plurality of small blocks can be combined into one content to be displayed. And if the adjacent node of the node to be merged is not the node to be merged, determining the node to be merged as a deletion node, namely deleting the merging node without any influence on preview content.
And S15, generating a preview page according to the merging node, the deleting node and the normal node.
Specifically, the generating a preview page according to the merge node, the delete node, and the normal node includes:
for all the merging nodes, merging the adjacent merging nodes into one integrated node;
deleting the deleted node;
and filling the preview content for the integration node and the normal node to obtain a preview page.
Wherein, color blocks can be filled in the integration node and the normal node, and the colors are unified to gray.
In this optional embodiment, adjacent merge nodes may be merged into one node (i.e., the merge node), the delete node is deleted, and finally, the merge node and the normal node remain, and preview content filling is performed on the merge node and the normal node, for example, gray color blocks are filled, so as to obtain a preview page. After the nodes are processed, the number of the nodes needing content filling is reduced, and the loading speed of the preview page is increased.
And S16, outputting the preview page to wait for the target page to be loaded.
In the embodiment of the invention, the preview page can be output, and the target page is waited to be loaded by a background.
As an optional implementation manner, after the preview page is output, the page output method further includes:
when the target page is detected to be completely loaded, deleting the preview page;
and outputting the target page.
In this optional embodiment, if it is detected that the target page is completely loaded, the preview page may be destroyed, and the target page is output.
In the method flow described in fig. 1, when a page is loaded, a preview page may be generated according to node information of the loaded page, and at the same time, a part of nodes may be deleted or merged to generate the preview page more quickly. The preview page can be automatically generated, the development efficiency is improved, the size of an application program is not increased, the maintenance performance is improved, the node deletion and combination processing also improves the generation speed of the preview page, namely the loading speed of the page is improved.
FIG. 2 is a functional block diagram of a preferred embodiment of a page loading apparatus according to the present disclosure.
Referring to fig. 2, the page output device 20 can be operated in an electronic device. The page output device 20 may include a plurality of functional modules composed of program code segments. The program code of each program segment in the page output device 20 may be stored in a memory and executed by at least one processor to perform some or all of the steps of the page output method described in fig. 1.
In this embodiment, the page output device 20 may be divided into a plurality of functional modules according to the functions performed by the page output device. The functional module may include: the device comprises an acquisition module 201, a determination module 202, a classification module 203, a generation module 204 and an output module 205. The module referred to herein is a series of computer program segments capable of being executed by at least one processor and capable of performing a fixed function and is stored in memory.
The obtaining module 201 is configured to obtain all nodes of a target page when a load instruction for the target page is received.
Wherein the nodes may be respective tags constituting the target page, such as < div >, < p >, and < img >, etc.
A determining module 202, configured to determine a target node from all the nodes.
The obtaining module 201 is further configured to obtain area information of the target node.
The area information includes an area height and an area width, and the area height and the area width may be obtained by accessing attribute information of the target node.
And the classification module 203 is configured to classify the target node according to the area information to obtain a merge node, a delete node, and a normal node.
The merge node may refer to a new node generated by merging existing nodes; the deleting node may refer to a node that needs to be deleted; the normal node may refer to a node that temporarily does not require further processing.
A generating module 204, configured to generate a preview page according to the merge node, the delete node, and the normal node.
An output module 205, configured to output the preview page to wait for the target page to be loaded.
In the embodiment of the invention, the preview page can be output, and the target page is waited to be loaded by a background.
As an optional implementation manner, the area information includes an area height and an area width, and the classifying module 203 classifies the target node according to the area information includes:
judging whether the area height of the target node is greater than a first preset height or not, and judging whether the area width of the target node is greater than a first preset width or not;
and if the area height of the target node is greater than a first preset area height, or the area width of the target node is greater than a first preset area width, determining that the target node is a deleted node.
In this optional embodiment, the area information includes an area height and an area width, and if the area height of the target node is greater than a first preset height, or if the area width of the target node is greater than a first preset width, it is determined that the content of the target node may be invisible content (for example, used for nesting other nodes, playing a fixing role or a positioning role, etc.), or the content of the target node may also be background content, etc. The target node may be determined to be a deleted node, that is, the target node does not need to perform preview processing.
As an optional implementation manner, the classifying module 203 classifies the target node according to the area information further includes:
if the area height of the target node is smaller than or equal to a first preset height and the area width of the target node is smaller than or equal to a first preset width, judging whether the area height of the target node is larger than a second preset height and judging whether the area width of the target node is larger than the second preset width;
and if the area height of the target node is greater than a second preset height and the area width of the target node is greater than a second preset width, determining that the target node is a normal node.
The second preset height is smaller than the first preset height, and the second preset width is smaller than the first preset width.
In this optional embodiment, if the area height of the target node is less than or equal to a first preset height, and the area width of the target node is less than or equal to the first preset width, it is further required to further determine whether the area height of the target node is greater than a second preset height, and determine whether the area width of the target node is greater than the second preset width, and if the area height of the target node is greater than the second preset height, and the area width of the target node is greater than the second preset width, it is determined that the content to be displayed exists in the target node. The target node may be determined to be a normal node.
As an optional implementation manner, the classifying module 203 classifies the target node according to the area information further includes:
if the area height of the target node is smaller than or equal to a second preset height, or the area width of the target node is smaller than or equal to a second preset width, determining the target node as a node to be merged;
judging whether a node to be merged exists in the adjacent node of the node to be merged;
if the node to be merged exists in the adjacent node of the node to be merged, determining the node to be merged as a merged node; or
And if the node to be merged does not exist in the adjacent node of the node to be merged, determining the node to be merged as a deleted node.
In this optional embodiment, if the area height of the target node is less than or equal to a second preset height, or the area width of the target node is less than or equal to a second preset width, it is determined that the content displayed on the page by the target node is very little, the target node may be determined as a node to be merged, and if an adjacent node of the node to be merged is a node to be merged, the node to be merged is determined as a merged node, and the merged node may be merged into one node. The display contents of a plurality of small blocks can be combined into one content to be displayed. And if the adjacent node of the node to be merged is not the node to be merged, determining the node to be merged as a deletion node, namely deleting the merging node without any influence on preview content.
As an optional implementation manner, the generating module 204 generates a preview page according to the merge node, the delete node, and the normal node, including:
for all the merging nodes, merging the adjacent merging nodes into one integrated node;
deleting the deleted node;
and filling the preview content for the integration node and the normal node to obtain a preview page.
Wherein, color blocks can be filled in the integration node and the normal node, and the colors are unified to gray.
In this optional embodiment, adjacent merge nodes may be merged into one node (i.e., the merge node), the delete node is deleted, and finally, the merge node and the normal node remain, and preview content filling is performed on the merge node and the normal node, for example, gray color blocks are filled, so as to obtain a preview page. After the nodes are processed, the number of the nodes needing content filling is reduced, and the loading speed of the preview page is increased.
As an optional implementation, the determining module 202 determines the target node from all the nodes, including:
determining a node identification for each of the nodes;
judging whether the node identification is a preset node identification or not;
and if the node identification is a preset node identification, determining that the node is a target node.
The target nodes may be main content display nodes in a web page, and node identifiers may be preset for the target nodes.
Wherein the node identification may be a character in a class (class) or an identity (id) of the node. The setting may be made in advance.
In this alternative embodiment, the node identifiers of all nodes may be read and determined, and the node having the preset node identifier may be determined as the target node.
As an optional implementation manner, the page output method further includes:
a deleting module, configured to delete the preview page when it is detected that the target page is completely loaded after the preview page is output by the output module 205;
the output module 205 is further configured to output the target page.
In this optional embodiment, if it is detected that the target page is completely loaded, the preview page may be destroyed, and the target page is output.
In the page output apparatus 20 described in fig. 2, when a page is loaded, a preview page can be generated according to node information of the loaded page, and at the same time, a part of nodes can be deleted or merged to generate the preview page more quickly. The preview page can be automatically generated, the development efficiency is improved, the size of an application program is not increased, the maintenance performance is improved, the node deletion and combination processing also improves the generation speed of the preview page, namely the loading speed of the page is improved.
As shown in fig. 3, fig. 3 is a schematic structural diagram of an electronic device implementing a page output method according to a preferred embodiment of the present invention. The electronic device 3 comprises a memory 31, at least one processor 32, a computer program 33 stored in the memory 31 and executable on the at least one processor 32, and at least one communication bus 34.
Those skilled in the art will appreciate that the schematic diagram shown in fig. 3 is merely an example of the electronic device 3, and does not constitute a limitation of the electronic device 3, and may include more or less components than those shown, or combine some components, or different components, for example, the electronic device 3 may further include an input/output device, a network access device, and the like.
The electronic device 3 may also include, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, for example, a Personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an Internet Protocol Television (IPTV), an intelligent wearable device, and the like. The Network where the electronic device 3 is located includes, but is not limited to, the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
The at least one Processor 32 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a discrete hardware component, etc. The processor 32 may be a microprocessor or the processor 32 may be any conventional processor or the like, and the processor 32 is a control center of the electronic device 3 and connects various parts of the whole electronic device 3 by various interfaces and lines.
The memory 31 may be used to store the computer program 33 and/or the module/unit, and the processor 32 may implement various functions of the electronic device 3 by running or executing the computer program and/or the module/unit stored in the memory 31 and calling data stored in the memory 31. The memory 31 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the electronic device 3, and the like. In addition, the memory 31 may include volatile and non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one disk storage device, a Flash memory device, and so forth.
In conjunction with fig. 1, the memory 31 in the electronic device 3 stores a plurality of instructions to implement a page output method, and the processor 32 executes the plurality of instructions to implement:
when a loading instruction for a target page is received, acquiring all nodes of the target page;
determining a target node from all the nodes;
acquiring regional information of the target node;
classifying the target nodes according to the regional information to obtain merging nodes, deleting nodes and normal nodes;
generating a preview page according to the merging node, the deleting node and the normal node;
and outputting the preview page to wait for the target page to be loaded.
Specifically, the processor 32 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the instruction, which is not described herein again.
In the electronic device 3 depicted in fig. 3, when a page is loaded, a preview page may be generated according to node information of the loaded page, and at the same time, a part of nodes may be deleted or merged to generate the preview page more quickly. The preview page can be automatically generated, the development efficiency is improved, the size of an application program is not increased, the maintenance performance is improved, the node deletion and combination processing also improves the generation speed of the preview page, namely the loading speed of the page is improved.
The integrated modules/units of the electronic device 3 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program code may be in source code form, object code form, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), etc.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A page output method is characterized by comprising the following steps:
when a loading instruction for a target page is received, acquiring all nodes of the target page;
determining a target node from all the nodes;
acquiring regional information of the target node;
classifying the target nodes according to the regional information to obtain merging nodes, deleting nodes and normal nodes;
generating a preview page according to the merging node, the deleting node and the normal node;
and outputting the preview page to wait for the target page to be loaded.
2. The page output method according to claim 1, wherein the region information includes a region height and a region width, and the classifying the target node according to the region information includes:
judging whether the area height of the target node is greater than a first preset height or not, and judging whether the area width of the target node is greater than a first preset width or not;
and if the area height of the target node is greater than a first preset area height, or the area width of the target node is greater than a first preset area width, determining that the target node is a deleted node.
3. The page output method according to claim 2, characterized in that the page output method further comprises:
if the area height of the target node is smaller than or equal to a first preset height and the area width of the target node is smaller than or equal to a first preset width, judging whether the area height of the target node is larger than a second preset height and judging whether the area width of the target node is larger than the second preset width;
and if the area height of the target node is greater than a second preset height and the area width of the target node is greater than a second preset width, determining that the target node is a normal node.
4. The page output method according to claim 2 or 3, characterized in that the page output method further comprises:
if the area height of the target node is smaller than or equal to a second preset height, or the area width of the target node is smaller than or equal to a second preset width, determining the target node as a node to be merged;
judging whether a node to be merged exists in the adjacent node of the node to be merged;
if the node to be merged exists in the adjacent node of the node to be merged, determining the node to be merged as a merged node; or
And if the node to be merged does not exist in the adjacent node of the node to be merged, determining the node to be merged as a deleted node.
5. The page output method according to claim 1, wherein the generating a preview page according to the merge node, the delete node, and the normal node includes:
for all the merging nodes, merging the adjacent merging nodes into one integrated node;
deleting the deleted node;
and filling the preview content for the integration node and the normal node to obtain a preview page.
6. The page output method according to claim 1, wherein said determining a target node from among said all nodes comprises:
determining a node identification for each of the nodes;
judging whether the node identification is a preset node identification or not;
and if the node identification is a preset node identification, determining that the node is a target node.
7. The page output method according to claim 1, wherein after the preview page is output, the page output method further comprises:
when the target page is detected to be completely loaded, deleting the preview page;
and outputting the target page.
8. A page output apparatus, characterized in that the page output apparatus comprises:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring all nodes of a target page when a loading instruction aiming at the target page is received;
a determining module, configured to determine a target node from all the nodes;
the acquisition module is further configured to acquire regional information of the target node;
the classification module is used for classifying the target nodes according to the regional information to obtain merged nodes, deleted nodes and normal nodes;
the generating module is used for generating a preview page according to the merging node, the deleting node and the normal node;
and the output module is used for outputting the preview page so as to wait for the target page to be loaded.
9. An electronic device, characterized in that the electronic device comprises a processor and a memory, the processor being configured to execute a computer program stored in the memory to implement the page output method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing at least one instruction which, when executed by a processor, implements a page output method as claimed in any one of claims 1 to 7.
CN202010762811.0A 2020-07-31 2020-07-31 Page output method and device, electronic equipment and storage medium Pending CN111897533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010762811.0A CN111897533A (en) 2020-07-31 2020-07-31 Page output method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010762811.0A CN111897533A (en) 2020-07-31 2020-07-31 Page output method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111897533A true CN111897533A (en) 2020-11-06

Family

ID=73183063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010762811.0A Pending CN111897533A (en) 2020-07-31 2020-07-31 Page output method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111897533A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130339840A1 (en) * 2012-05-08 2013-12-19 Anand Jain System and method for logical chunking and restructuring websites
US20140245196A1 (en) * 2013-02-26 2014-08-28 Google Inc. User interface generation and preview
CN104965833A (en) * 2014-06-13 2015-10-07 腾讯科技(深圳)有限公司 Method and apparatus for displaying webpage on a browser window
US9690764B1 (en) * 2014-12-12 2017-06-27 Amazon Technologies, Inc. Delivery and display of page previews using shadow DOM
CN108280107A (en) * 2017-03-08 2018-07-13 广州市动景计算机科技有限公司 Web page processing method, device and user terminal
CN108280109A (en) * 2017-04-17 2018-07-13 广州市动景计算机科技有限公司 Page data filter method, device and user terminal
CN111488152A (en) * 2019-01-29 2020-08-04 阿里巴巴集团控股有限公司 Method for compiling application program and previewing page, and related device and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130339840A1 (en) * 2012-05-08 2013-12-19 Anand Jain System and method for logical chunking and restructuring websites
US20140245196A1 (en) * 2013-02-26 2014-08-28 Google Inc. User interface generation and preview
CN104965833A (en) * 2014-06-13 2015-10-07 腾讯科技(深圳)有限公司 Method and apparatus for displaying webpage on a browser window
US9690764B1 (en) * 2014-12-12 2017-06-27 Amazon Technologies, Inc. Delivery and display of page previews using shadow DOM
CN108280107A (en) * 2017-03-08 2018-07-13 广州市动景计算机科技有限公司 Web page processing method, device and user terminal
CN108280109A (en) * 2017-04-17 2018-07-13 广州市动景计算机科技有限公司 Page data filter method, device and user terminal
CN111488152A (en) * 2019-01-29 2020-08-04 阿里巴巴集团控股有限公司 Method for compiling application program and previewing page, and related device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谢方立 等: "基于节点类型标注的网页主题信息抽取方法", 计算机科学, vol. 43, no. 11, pages 31 - 34 *

Similar Documents

Publication Publication Date Title
US11120589B2 (en) Increasing readability of visualization nodes
WO2019134232A1 (en) Method for performing underwriting verification, device, storage medium, and terminal
TWI682335B (en) Data object display method and device
CN111897818A (en) Data storage method and device, electronic equipment and storage medium
US20210263887A1 (en) Composite storage of objects in multi-tenant devices
CN114357350A (en) Webpage visual editing method and related device
CN112288841B (en) Method and device for creating rendering frame graph
US8676844B2 (en) Graph authorization
CN110535724B (en) Application program network read-write limiting method and device, electronic equipment and storage medium
US10459834B2 (en) Run time and historical workload report scores for customer profiling visualization
CN111897819A (en) Data storage method and device, electronic equipment and storage medium
CN111897533A (en) Page output method and device, electronic equipment and storage medium
CN111897612A (en) Page updating method and device, electronic equipment and storage medium
CN113535087B (en) Data processing method, server and storage system in data migration process
CN115618838A (en) Report generation method and equipment
CN114756277A (en) Page configuration method and device
CN112434237A (en) Page loading method and device, electronic equipment and storage medium
CN112114931B (en) Deep learning program configuration method and device, electronic equipment and storage medium
CN113489701A (en) Firewall configuration method, system and equipment
CN112667721A (en) Data analysis method, device, equipment and storage medium
CN112016889A (en) Process construction method and device, electronic equipment and storage medium
US20200073916A1 (en) Collaborative documentation
CN114860350B (en) Data processing method and device based on cloud diskless tree-like mirror image
CN115334698B (en) Construction method, device, terminal and medium of target 5G safety network of target range
WO2023066064A1 (en) Content based on-device image adjustment

Legal Events

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