CN109213943B - Webpage loading method and device, terminal equipment, processor and storage medium - Google Patents

Webpage loading method and device, terminal equipment, processor and storage medium Download PDF

Info

Publication number
CN109213943B
CN109213943B CN201710546705.7A CN201710546705A CN109213943B CN 109213943 B CN109213943 B CN 109213943B CN 201710546705 A CN201710546705 A CN 201710546705A CN 109213943 B CN109213943 B CN 109213943B
Authority
CN
China
Prior art keywords
webpage
module
configuration information
information
loading
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
CN201710546705.7A
Other languages
Chinese (zh)
Other versions
CN109213943A (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201710546705.7A priority Critical patent/CN109213943B/en
Publication of CN109213943A publication Critical patent/CN109213943A/en
Application granted granted Critical
Publication of CN109213943B publication Critical patent/CN109213943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a webpage loading method, a webpage loading device, terminal equipment, a processor and a storage medium, which can obtain configuration information of a webpage from a website server, analyze the configuration information, and generate relative addresses corresponding to modules in the webpage according to webpage structure information in the configuration information; the method comprises the steps of obtaining a network link of a website server to be accessed, determining whether the network link contains a generated relative address, if so, obtaining the relative address from the network link, determining a module corresponding to the relative address, and loading data information of the determined module in configuration information to display the determined module. According to the method and the device, the webpage is loaded according to the configuration information, and when the webpage needs to be maintained, the webpage structure can be determined from the configuration information, so that the modules which need to be modified can be easily known. Because the configuration information comprises the data information of each module in the webpage, when some modules need to be modified, the data information can be modified in the configuration information, and the method is simpler.

Description

Webpage loading method and device, terminal equipment, processor and storage medium
Technical Field
The present invention relates to the field of web page development technologies, and in particular, to a web page loading method and apparatus, a terminal device, a processor, and a storage medium.
Background
With the development of the internet, users often need to browse various web pages.
The web pages of most websites are composed of a plurality of modules, which are complex, such as: the web page of a certain website is composed of a plurality of modules such as a news module, a picture module and a video module, and the news module is composed of a plurality of modules such as domestic news, international news, sports news and entertainment news. In the prior art, a corresponding hypertext markup Language (HTML) file needs to be written for each module, and links of the modules are added to an entry file in an anchor point manner. Because the relationship between modules in a web page is complex, when some modules in the web page need to be maintained, the modification of the modules may cause corresponding changes to other modules. This is inconvenient because the relationship between the modules needs to be determined according to the links added by way of the anchor points, and thus the modules involved in the modification are determined according to the relationship between the modules. Meanwhile, in the prior art, the HTML files of all related modules need to be modified, which is complex.
Disclosure of Invention
In view of the above problems, the present invention is proposed to provide a web page loading method, apparatus, terminal device, processor and storage medium to overcome the above problems or at least partially solve the above problems, and the solution is as follows:
a webpage loading method is applied to a terminal device, the terminal device is in communication connection with a website server, and the method comprises the following steps:
obtaining configuration information of a web page from the web server, the configuration information including: the method comprises the steps of acquiring webpage structure information and data information of each module in a webpage;
analyzing the configuration information, and generating relative addresses corresponding to all modules in a webpage according to webpage structure information in the configuration information;
obtaining a network link of the website server to be accessed, determining whether the network link contains the generated relative address, if so, obtaining the relative address from the network link, determining a module corresponding to the relative address, and loading data information of the determined module in the configuration information to display the determined module.
Optionally, the webpage structure information includes: and attribution relation of each module in the webpage.
Optionally, before obtaining the configuration information of the web page from the website server, the method further includes: and sending a website access request to the website server.
Optionally, if the generated relative address is not included in the network link, loading data information of a preset module in the configuration information to display the preset module.
Optionally, the method further includes:
receiving a configuration information updating instruction sent by the website server, acquiring data required by updating from the website server and updating the acquired configuration information of the webpage;
and analyzing the updated configuration information, and updating the generated relative address corresponding to each module in the webpage according to the webpage structure information in the updated configuration information.
A webpage loading device is applied to a terminal device, the terminal device is in communication connection with a website server, and the device comprises: a configuration obtaining unit, a configuration analyzing unit, a link obtaining unit and a first module loading unit,
the configuration obtaining unit is configured to obtain configuration information of a web page from the website server, where the configuration information includes: the method comprises the steps of acquiring webpage structure information and data information of each module in a webpage;
the configuration analysis unit is used for analyzing the configuration information and generating relative addresses corresponding to all modules in the webpage according to the webpage structure information in the configuration information;
the link obtaining unit is used for obtaining a network link of the website server to be accessed, determining whether the network link contains the generated relative address, and if so, triggering the module loading unit;
the first module loading unit is configured to obtain a relative address from the network link, determine a module corresponding to the relative address, and load data information of the determined module in the configuration information to display the determined module.
Optionally, the webpage structure information includes: and attribution relation of each module in the webpage.
The terminal device is in communication connection with a website server and comprises a processor, a memory and a program which is stored on the memory and can run on the processor, and the processor realizes any webpage loading method when executing the program.
A processor, configured to run a program, which when running executes any of the above-mentioned web page loading methods.
A storage medium having stored thereon a program which, when executed by a processor, implements any of the above-described web page loading methods.
By means of the technical scheme, the webpage loading method, the webpage loading device, the terminal equipment, the processor and the storage medium can obtain the configuration information of the webpage from the website server, analyze the configuration information and generate the relative address corresponding to each module in the webpage according to the webpage structure information in the configuration information; the method comprises the steps of obtaining a network link of a website server to be accessed, determining whether the network link contains a generated relative address, if so, obtaining the relative address from the network link, determining a module corresponding to the relative address, and loading data information of the determined module in configuration information to display the determined module. According to the method and the system, the webpage is loaded according to the configuration information, and when the webpage needs to be maintained, a website developer can determine the webpage structure from the configuration information so as to easily know which modules need to be modified. Meanwhile, the configuration information comprises the data information of each module in the webpage, so that when some modules need to be modified, the modification can be carried out in the configuration information, and the modification is simpler and more direct.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a method for loading a web page according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a website structure according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another website structure provided by the embodiment of the invention;
fig. 4 is a schematic structural diagram illustrating a web page loading apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As shown in fig. 1, an embodiment of the present invention provides a web page loading method, which is applied to a terminal device, where the terminal device is in communication connection with a website server, and the method may include:
s100, obtaining configuration information of a webpage from the website server, wherein the configuration information comprises: the method comprises the steps of acquiring webpage structure information and data information of each module in a webpage;
optionally, the web page loading method provided by the embodiment of the present invention may be applied to an application program with a web page browsing function, such as a browser.
Wherein the web page structure information may include: and attribution relation of each module in the webpage. Specifically, the web page structure information may further include: webpage type information, module content display modes and the like. The attribution relationship of each module in the webpage can be determined through the module list in the webpage and the nesting relationship among the modules. Therefore, the attribution relationship of the modules in the invention can be embodied by the nesting relationship among the modules.
The data information of each module in the web page may include: the names, titles, subtitles, data files and the like of the modules in the web page, optionally, the configuration information may further include: the webpage name, the icon before the webpage name and other webpage data information. The modules can be distinguished from each other by using the names, titles, subtitles or the like of the modules as identifiers.
Wherein, some modules in the web page can be nested in other modules, such as: the domestic news module is nested in the news module; thus, the domestic news module belongs to the news module, and the domestic news module is a lower layer module of the news module.
In practical application, website developers can easily write and modify the configuration information of the webpage according to requirements, so that all modules in the webpage can be freely combined and adjusted.
As shown in fig. 2, it is a schematic diagram of a web page structure of a web page a: the webpage A comprises a news module, a video module and a picture module, wherein the international news module and the domestic news module are nested in the news module, and the news video module is nested in the domestic news module; the news video module and the entertainment video module are nested in the video module. As can be seen from this figure, when a news video module is modified, the domestic news module and the video module may also need to be modified accordingly.
Since the configuration information includes the web page structure information, the website developer can directly determine the web page structure from the configuration information so as to easily know which modules may need to be modified. Of course, the website developer may also modify the web page structure information in the configuration information to modify the web page structure, for example: a module is deleted. Meanwhile, the configuration information comprises the data information of each module in the webpage, so that when some modules need to be modified, modification can be directly carried out in the configuration information without respectively modifying the HTML files of each module, and the method is simpler and more direct.
Optionally, before step S100, the method shown in fig. 1 may further include: and sending a website access request to the website server.
And after sending the website access request to the website server, the website server sends the configuration information of the webpage to the terminal equipment. Thus, the terminal device obtains the configuration information of the web page from the web server.
For the following description of the configuration information, the specific content of the configuration information may be as shown in the following code:
Figure BDA0001343325780000051
Figure BDA0001343325780000061
Figure BDA0001343325780000071
the schematic diagram of the web page structure shown in fig. 3 can be clearly obtained from the configuration information, which includes configuration information of three web pages, respectively: a web page named "main discovery", a web page named "full web show", a web page named "sponsorship effect". The web page named "main discovery" includes a module "module one" and a module "module two". The web page named "full web show" includes modules "who are the best 10 shows? Which industries share all sponsorship industries? ". The web page named "sponsorship effect" includes a module "program presentation" nested within a module "program presentation" and a module "program rating" nested within a module "program viewing".
S200, analyzing the configuration information, and generating relative addresses corresponding to all modules in the webpage according to webpage structure information in the configuration information;
specifically, step S200 may include: and analyzing the configuration information by using a routing table generator, generating a relative address according to the webpage structure information in the configuration information, and establishing a corresponding relation between the generated relative address and each module by using a routing module of the browser. It will be appreciated that the routing table generator and the routing module are both part of the browser functionality involved in the front-end routing technique.
Because the configuration information used by the invention contains the webpage structure information, the webpage structure information in the configuration information can be obtained after the configuration information is analyzed, and the routing table generator and the routing module are used for generating the relative address corresponding to each module in the webpage.
For example: the relative address corresponding to the domestic news module in the webpage structure diagram shown in fig. 2 may be: "/news/guinei".
The relative address generated by the invention can be added to any domain name to obtain the absolute address, so that each module can be easily recycled by the invention.
S300, obtaining a network link of the website server to be accessed, determining whether the network link contains the generated relative address, and if so, executing the step S400;
specifically, the network link obtained in step S300 may be the network link clicked or input by the user before step S100 is executed, or may also be the network link clicked or input by the user after step S200 is executed.
Optionally, if the generated relative address is not included in the network link, step S500 may be performed.
S400, obtaining a relative address from the network link, determining a module corresponding to the relative address, and loading data information of the determined module in the configuration information to display the determined module.
S500, loading data information of a preset module in the configuration information to display the preset module.
And when the network link of the website server to be accessed does not contain the generated relative address, loading the data information of the preset module. For example: the preset module is a news recommending module or a homepage module, the news recommending module can contain a plurality of recommended news, and the news recommending module can improve the website browsing amount by recommending the news to the user.
When a user operates in a page corresponding to a currently displayed module to jump to a page corresponding to another module, the browser applying the scheme of the invention can directly display the page corresponding to the other module without refreshing because the browser uses the configuration information containing the webpage structure information and the data information of each module in the webpage and the front-end routing technology.
According to the webpage loading method provided by the embodiment of the invention, the configuration information of the webpage can be obtained from the website server, the configuration information is analyzed, and the relative address corresponding to each module in the webpage is generated according to the webpage structure information in the configuration information; obtaining a network link of the website server to be accessed, determining whether the network link contains the generated relative address, if so, obtaining the relative address from the network link, determining a module corresponding to the relative address, and loading data information of the determined module in the configuration information to display the determined module. According to the invention, the webpage can be loaded according to the configuration information, so that when the webpage needs to be maintained, a website developer can determine the webpage structure from the configuration information, thereby easily knowing which modules need to be modified. Meanwhile, the configuration information comprises the data information of each module in the webpage, so that when some modules need to be modified, modification can be directly carried out in the configuration information without respectively modifying the HTML files of each module, and the method is simpler and more direct. Of course, the invention also enables website developers to realize the free combination of all modules of the website directly by compiling configuration information, thereby being more convenient and efficient.
On the basis of the embodiment shown in fig. 1, another web page loading method provided by the embodiment of the present invention may further include:
receiving a configuration information updating instruction sent by the website server, acquiring data required by updating from the website server and updating the acquired configuration information of the webpage;
and analyzing the updated configuration information, and updating the generated relative address corresponding to each module in the webpage according to the webpage structure information in the updated configuration information.
After the website server updates the configuration information, the invention can update the configuration information and the relative address corresponding to each module according to the configuration information updating instruction so as to display the updated webpage content.
Corresponding to the above method embodiment, the present invention further provides a web page loading apparatus, which is described in detail below with reference to the accompanying drawings:
as shown in fig. 4, a web page loading apparatus provided in an embodiment of the present invention is applied to a terminal device, where the terminal device is in communication connection with a website server, and the web page loading apparatus may include: a configuration obtaining unit 100, a configuration parsing unit 200, a link obtaining unit 300 and a first module loading unit 400,
the configuration obtaining unit 100 is configured to obtain configuration information of a web page from the website server, where the configuration information includes: the method comprises the steps of acquiring webpage structure information and data information of each module in a webpage;
optionally, the configuration obtaining unit 100, the configuration parsing unit 200, the link obtaining unit 300, and the first module loading unit 400 provided in the embodiment of the present invention may be disposed in an application program with a web browsing function, such as a browser.
Wherein the web page structure information may include: and attribution relation of each module in the webpage. Specifically, the web page structure information may further include: webpage type information, module content display modes and the like. The attribution relationship of each module in the webpage can be determined through the module list in the webpage and the nesting relationship among the modules. Therefore, the attribution relationship of the modules in the invention can be embodied by the nesting relationship among the modules.
The data information of each module in the web page may include: the names, titles, subtitles, data files and the like of the modules in the web page, optionally, the configuration information may further include: the webpage name, the icon before the webpage name and other webpage data information.
Wherein, some modules in the web page can be nested in other modules, such as: the domestic news module is nested in the news module; thus, the domestic news module belongs to the news module, and the domestic news module is a lower layer module of the news module.
In practical application, website developers can easily write and modify the configuration information of the webpage according to requirements, so that all modules in the webpage can be freely combined and adjusted.
Since the configuration information includes the web page structure information, the website developer can directly determine the web page structure from the configuration information so as to easily know which modules may need to be modified. Of course, the website developer may also modify the web page structure information in the configuration information to modify the web page structure, for example: a module is deleted. Meanwhile, the configuration information comprises the data information of each module in the webpage, so that when some modules need to be modified, modification can be directly carried out in the configuration information without respectively modifying the HTML files of each module, and the method is simpler and more direct.
The web page loading apparatus shown in fig. 4 may further include: a request sending unit, configured to send a website access request to the website server before the configuration obtaining unit obtains the configuration information of the webpage from the website server.
And after sending the website access request to the website server, the website server sends the configuration information of the webpage to the terminal equipment. Thus, the terminal device obtains the configuration information of the web page from the web server.
The configuration analysis unit 200 is configured to analyze the configuration information, and generate a relative address corresponding to each module in a web page according to web page structure information in the configuration information;
specifically, the configuration analysis unit 200 may analyze the configuration information using a routing table generator, generate a relative address according to the web page structure information in the configuration information, and establish a corresponding relationship between the generated relative address and each module using a routing module of the browser. It will be appreciated that the routing table generator and the routing module are both part of the browser functionality involved in the front-end routing technique.
Because the configuration information used by the invention contains the webpage structure information, the webpage structure information in the configuration information can be obtained after the configuration information is analyzed, and the routing table generator and the routing module are used for generating the relative address corresponding to each module in the webpage.
The relative address generated by the invention can be added to any domain name to obtain the absolute address, so that each module can be easily recycled by the invention.
The link obtaining unit 300 is configured to obtain a network link of the website server to be accessed, determine whether the network link includes the generated relative address, and if so, trigger the module loading unit 400;
specifically, the network link obtained by the link obtaining unit 300 may be a network link clicked or input by the user.
Optionally, the web page loading apparatus shown in fig. 4 may further include: a second module loading unit, configured to load data information of a preset module in the configuration information to display the preset module when the link obtaining unit 300 determines that the network link does not include the generated relative address.
For example: the preset module is a news recommending module or a homepage module, the news recommending module can contain a plurality of recommended news, and the news recommending module can improve the website browsing amount by recommending the news to the user.
The first module loading unit 400 is configured to obtain a relative address from the network link, determine a module corresponding to the relative address, and load data information of the determined module in the configuration information to display the determined module.
When a user operates in a page corresponding to a currently displayed module to jump to a page corresponding to another module, the browser applying the scheme of the invention can directly display the page corresponding to the other module without refreshing because the browser uses the configuration information containing the webpage structure information and the data information of each module in the webpage and the front-end routing technology.
The webpage loading device provided by the embodiment of the invention can acquire the configuration information of the webpage from the website server, analyze the configuration information and generate the relative address corresponding to each module in the webpage according to the webpage structure information in the configuration information; obtaining a network link of the website server to be accessed, determining whether the network link contains the generated relative address, if so, obtaining the relative address from the network link, determining a module corresponding to the relative address, and loading data information of the determined module in the configuration information to display the determined module. According to the invention, the webpage can be loaded according to the configuration information, so that when the webpage needs to be maintained, a website developer can determine the webpage structure from the configuration information, thereby easily knowing which modules need to be modified. Meanwhile, the configuration information comprises the data information of each module in the webpage, so that when some modules need to be modified, modification can be directly carried out in the configuration information without respectively modifying the HTML files of each module, and the method is simpler and more direct. Of course, the invention also enables website developers to realize the free combination of all modules of the website directly by compiling configuration information, thereby being more convenient and efficient.
On the basis of the embodiment shown in fig. 4, another web page loading apparatus provided in the embodiment of the present invention may further include: a data obtaining unit and an address updating unit,
the data obtaining unit is used for receiving a configuration information updating instruction sent by the website server, obtaining data required by updating from the website server and updating the obtained configuration information of the webpage;
and the address updating unit is used for analyzing the updated configuration information and updating the generated relative address corresponding to each module in the webpage according to the webpage structure information in the updated configuration information.
After the website server updates the configuration information, the invention can update the configuration information and the relative address corresponding to each module according to the configuration information updating instruction so as to display the updated webpage content.
The webpage loading device comprises a processor and a memory, wherein the configuration obtaining unit, the configuration analyzing unit, the link obtaining unit, the first module loading unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to one or more, and the webpage is loaded according to the configuration information by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium, on which a program is stored, and the program implements the web page loading method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the webpage loading method is executed when the program runs.
The embodiment of the invention provides a terminal device, which is in communication connection with a website server, and comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the following steps:
obtaining configuration information of a web page from the web server, the configuration information including: the method comprises the steps of acquiring webpage structure information and data information of each module in a webpage;
analyzing the configuration information, and generating relative addresses corresponding to all modules in a webpage according to webpage structure information in the configuration information;
obtaining a network link of the website server to be accessed, determining whether the network link contains the generated relative address, if so, obtaining the relative address from the network link, determining a module corresponding to the relative address, and loading data information of the determined module in the configuration information to display the determined module.
Optionally, the webpage structure information includes: and attribution relation of each module in the webpage.
Optionally, before obtaining the configuration information of the web page from the website server, the method further includes: and sending a website access request to the website server.
Optionally, if the generated relative address is not included in the network link, loading data information of a preset module in the configuration information to display the preset module.
Optionally, the method further includes:
receiving a configuration information updating instruction sent by the website server, acquiring data required by updating from the website server and updating the acquired configuration information of the webpage;
and analyzing the updated configuration information, and updating the generated relative address corresponding to each module in the webpage according to the webpage structure information in the updated configuration information.
The terminal device in this context may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a terminal device:
obtaining configuration information of a web page from a web server, the configuration information including: the method comprises the steps of acquiring webpage structure information and data information of each module in a webpage; the terminal equipment is in communication connection with the website server;
analyzing the configuration information, and generating relative addresses corresponding to all modules in a webpage according to webpage structure information in the configuration information;
obtaining a network link of the website server to be accessed, determining whether the network link contains the generated relative address, if so, obtaining the relative address from the network link, determining a module corresponding to the relative address, and loading data information of the determined module in the configuration information to display the determined module.
Optionally, the webpage structure information includes: and attribution relation of each module in the webpage.
Optionally, before obtaining the configuration information of the web page from the website server, the method further includes: and sending a website access request to the website server.
Optionally, if the generated relative address is not included in the network link, loading data information of a preset module in the configuration information to display the preset module.
Optionally, the method further includes:
receiving a configuration information updating instruction sent by the website server, acquiring data required by updating from the website server and updating the acquired configuration information of the webpage;
and analyzing the updated configuration information, and updating the generated relative address corresponding to each module in the webpage according to the webpage structure information in the updated configuration information.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (8)

1. A webpage loading method is applied to a terminal device, the terminal device is in communication connection with a website server, and the method comprises the following steps:
obtaining configuration information of a web page from the web server, the configuration information including: the method comprises the steps of acquiring webpage structure information and data information of each module in a webpage; the webpage structure information comprises the affiliation relationship of each module in the webpage; the attribution relationship of each module in the webpage is a nesting relationship among the modules;
analyzing the configuration information, and generating relative addresses corresponding to all modules in a webpage according to webpage structure information in the configuration information;
obtaining a network link of the website server to be accessed, determining whether the network link contains the generated relative address, if so, obtaining the relative address from the network link, determining a module corresponding to the relative address, and loading data information of the determined module in the configuration information to display the determined module.
2. The method of claim 1, wherein before obtaining the configuration information of the web page from the web server, the method further comprises: and sending a website access request to the website server.
3. The method according to claim 1, wherein if the generated relative address is not included in the network link, loading data information of a preset module in the configuration information to display the preset module.
4. The method of claim 1, further comprising:
receiving a configuration information updating instruction sent by the website server, acquiring data required by updating from the website server and updating the acquired configuration information of the webpage;
and analyzing the updated configuration information, and updating the generated relative address corresponding to each module in the webpage according to the webpage structure information in the updated configuration information.
5. A webpage loading device is characterized in that the webpage loading device is applied to a terminal device, the terminal device is in communication connection with a website server, and the device comprises: a configuration obtaining unit, a configuration analyzing unit, a link obtaining unit and a first module loading unit,
the configuration obtaining unit is configured to obtain configuration information of a web page from the website server, where the configuration information includes: the method comprises the steps of acquiring webpage structure information and data information of each module in a webpage; the webpage structure information comprises the affiliation relationship of each module in the webpage; the attribution relationship of each module in the webpage is a nesting relationship among the modules;
the configuration analysis unit is used for analyzing the configuration information and generating relative addresses corresponding to all modules in the webpage according to the webpage structure information in the configuration information;
the link obtaining unit is used for obtaining a network link of the website server to be accessed, determining whether the network link contains the generated relative address, and if so, triggering the module loading unit;
the first module loading unit is configured to obtain a relative address from the network link, determine a module corresponding to the relative address, and load data information of the determined module in the configuration information to display the determined module.
6. A terminal device, wherein the terminal device is communicatively connected to a web server, the terminal device comprises a processor, a memory and a program stored in the memory and operable on the processor, and the processor executes the program to implement the web page loading method according to any one of claims 1 to 4.
7. A processor, characterized in that the processor is configured to run a program, which when running performs the web page loading method of any one of claims 1 to 4.
8. A storage medium, characterized in that the storage medium has stored thereon a program which, when executed by a processor, implements the web page loading method of any one of claims 1 to 4.
CN201710546705.7A 2017-07-06 2017-07-06 Webpage loading method and device, terminal equipment, processor and storage medium Active CN109213943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710546705.7A CN109213943B (en) 2017-07-06 2017-07-06 Webpage loading method and device, terminal equipment, processor and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710546705.7A CN109213943B (en) 2017-07-06 2017-07-06 Webpage loading method and device, terminal equipment, processor and storage medium

Publications (2)

Publication Number Publication Date
CN109213943A CN109213943A (en) 2019-01-15
CN109213943B true CN109213943B (en) 2022-02-18

Family

ID=64992249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710546705.7A Active CN109213943B (en) 2017-07-06 2017-07-06 Webpage loading method and device, terminal equipment, processor and storage medium

Country Status (1)

Country Link
CN (1) CN109213943B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004729A (en) * 2009-09-03 2011-04-06 阿里巴巴集团控股有限公司 Method and system for showing website webpage and website server
CN105095445A (en) * 2015-07-24 2015-11-25 北京奇虎科技有限公司 Page generation method and system
CN106776761A (en) * 2016-11-18 2017-05-31 武汉斗鱼网络科技有限公司 A kind of mobile browser renders the method and device of webpage

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8381098B2 (en) * 2010-03-29 2013-02-19 International Business Machines Corporation Webpage request handling

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004729A (en) * 2009-09-03 2011-04-06 阿里巴巴集团控股有限公司 Method and system for showing website webpage and website server
CN105095445A (en) * 2015-07-24 2015-11-25 北京奇虎科技有限公司 Page generation method and system
CN106776761A (en) * 2016-11-18 2017-05-31 武汉斗鱼网络科技有限公司 A kind of mobile browser renders the method and device of webpage

Also Published As

Publication number Publication date
CN109213943A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN110968824B (en) Page data processing method and device
CN106598972B (en) Information display method and device and intelligent terminal
CN110311989B (en) Gray scale publishing method, device, storage medium, equipment and system
CN106874174B (en) Method and device for realizing interface test and function test
TWI608416B (en) Page return method and apparatus, page generation method and apparatus
US20140007057A1 (en) Evaluating application compatibility
CN110442815B (en) Page generation method, system, device and computer readable storage medium
CN102567516A (en) Script loading method and device
CN106294113B (en) creation method and device based on programmable test service
CN110941500A (en) Interface display method and device
CN111639278A (en) Webpage loading method and device
US20210105314A1 (en) Associating browser with application
US7912924B1 (en) Adding functionality with respect to one or more web pages
CN107479868B (en) Interface loading method, device and equipment
CN102298599A (en) Method and system for browsing web pages in offline state
CN111651703A (en) Page jump method and device, electronic equipment and readable storage medium
CN104636396A (en) Page positioning method and device
Rodrigues et al. New trends on ubiquitous mobile multimedia applications
CN114329281A (en) Rendering server, webpage rendering method and webpage rendering device
CN107220260B (en) Page display method and device
CN108664191B (en) System access method and device
CN104899217A (en) Method and apparatus for implementing customized function
WO2015058614A1 (en) Bookmark storage method and device, and method and device for determining bookmark to be browsed
CN110618811B (en) Information presentation method and device
CN110708270B (en) Abnormal link detection method and device

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
CB02 Change of applicant information

Address after: 100080 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant