CN108595697B - Webpage integration method, device and system - Google Patents

Webpage integration method, device and system Download PDF

Info

Publication number
CN108595697B
CN108595697B CN201810436241.9A CN201810436241A CN108595697B CN 108595697 B CN108595697 B CN 108595697B CN 201810436241 A CN201810436241 A CN 201810436241A CN 108595697 B CN108595697 B CN 108595697B
Authority
CN
China
Prior art keywords
webpage
navigation bar
data
server
label
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
CN201810436241.9A
Other languages
Chinese (zh)
Other versions
CN108595697A (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.)
Weikun Shanghai Technology Service Co Ltd
Original Assignee
Weikun Shanghai Technology Service 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 Weikun Shanghai Technology Service Co Ltd filed Critical Weikun Shanghai Technology Service Co Ltd
Priority to CN201810436241.9A priority Critical patent/CN108595697B/en
Publication of CN108595697A publication Critical patent/CN108595697A/en
Application granted granted Critical
Publication of CN108595697B publication Critical patent/CN108595697B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a webpage integration method, device and system. The method comprises the following steps: acquiring webpage original data from a plurality of website servers; performing templating processing on the original webpage data to obtain corresponding webpage text data; embedding a pre-constructed navigation bar component into text data of each webpage; returning the webpage text data embedded into the navigation bar component to the corresponding website server; the website server is used for sending the webpage text data to the terminal, and the terminal generates a target webpage according to the webpage text data; when a tag acquisition request sent by a terminal is received, acquiring pre-generated tag dynamic data; sending the dynamic data of the tag to a terminal; the label dynamic data is used for indicating the terminal to load an integrated navigation bar corresponding to the navigation bar component in the target webpage, and the integrated navigation bar comprises a plurality of webpage labels corresponding to the label dynamic data. By adopting the method, the rapid integration of the webpage can be realized.

Description

Webpage integration method, device and system
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a system for web page integration.
Background
With the development of website integration, webpage integration becomes a development trend today. For example, in the case of co-purchasing and integrating between different companies or integrating multiple product lines inside a company, multiple existing web pages need to be integrated into one website. The traditional web page integration method is to split the front end and the back end of a plurality of web pages, maintain the back end of each web page independently, and redevelop and centralized maintenance are needed to the front end of each web page, so that the style of each web page in a website is unified.
However, the conventional web page integration method needs to consume a lot of work to perform the front-end and back-end splitting of the web page and the development of the front end of the web page. In addition, because the web pages to be integrated are changed or added with the needs of the company, the original codes need to be continuously modified, and the web page integration time is also prolonged, so that the web page integration efficiency is low. Therefore, how to effectively improve the integration efficiency of web pages becomes a technical problem to be solved at present.
Disclosure of Invention
Accordingly, it is desirable to provide a web page integration method, device and system capable of quickly integrating web pages in order to solve the above technical problems.
A method of web page integration, the method comprising: acquiring webpage original data from a plurality of website servers; performing templating processing on the plurality of webpage original data to obtain a plurality of corresponding webpage text data; embedding a pre-constructed navigation bar component into each webpage text data; returning the webpage text data embedded into the navigation bar component to a corresponding website server; the website server is used for sending the webpage text data embedded into the navigation bar component to a terminal, and the terminal is used for generating a target webpage according to the webpage text data embedded into the navigation bar component; when a tag acquisition request sent by the terminal is received, acquiring pre-generated tag dynamic data; sending the label dynamic data to the terminal; the label dynamic data is used for indicating the terminal to load an integrated navigation bar corresponding to the navigation bar component in the target webpage, and the integrated navigation bar comprises a plurality of webpage labels corresponding to the label dynamic data.
In one embodiment, before the acquiring the pre-generated dynamic data of the tag, the method further includes: receiving web page addresses corresponding to a plurality of web servers; acquiring preset attribute parameters of a navigation bar; and generating label dynamic data from the multiple webpage addresses according to the navigation bar attribute parameters.
In one embodiment, before the acquiring the pre-generated dynamic data of the tag, the method further includes: extracting corresponding webpage site map data from a plurality of webpage original data; analyzing the webpage site map data to obtain a corresponding multi-level site tree; and generating label dynamic data according to the multi-level site tree.
A method of web page integration, the method comprising: sending a webpage access request to a first website server; the webpage access request is used for indicating the first website server to acquire first webpage text data from an integrated server, and a navigation bar component is embedded in the first webpage text data; receiving the text data of the first webpage sent by the first website server; analyzing the text data of the first webpage to generate a corresponding target webpage; sending a tag acquisition request to the integration server; the tag obtaining request is used for indicating the integration server to obtain tag dynamic data; receiving the label dynamic data sent by the integration server; and loading an integrated navigation bar corresponding to the navigation bar component in the target webpage according to the dynamic label data, wherein the integrated navigation bar comprises a plurality of webpage labels corresponding to the dynamic label data.
In one embodiment, after the loading the integrated navigation bar corresponding to the navigation bar component in the target webpage according to the tag dynamic data, the method further includes: detecting webpage skipping operation acting on a webpage label; according to the website skipping operation, sending a webpage skipping request to a second website server corresponding to the acted webpage label; the webpage jump request is used for indicating the second website server to acquire second webpage text data from the integrated server, and the navigation bar component is embedded in the second webpage text data; receiving the text data of the second webpage sent by the second website server; and analyzing the text data of the second webpage to generate a corresponding target webpage.
In one embodiment, the method further comprises: detecting a tag moving operation acting on a webpage tag; determining the display positions of the plurality of webpage labels according to the label moving operation, and displaying the corresponding webpage labels at the determined display positions; generating label position data according to the display positions of the plurality of webpage labels; sending the tag location data to the integration server; the tag location data is used to instruct the integration server to generate tag dynamic data.
A web page integration apparatus, the apparatus comprising: the acquisition module is used for acquiring webpage original data from a plurality of website servers; when a tag acquisition request sent by the terminal is received, acquiring pre-generated tag dynamic data; the processing module is used for carrying out templating processing on the plurality of webpage original data to obtain a plurality of corresponding webpage text data; the embedding module is used for embedding a pre-constructed navigation bar component into each webpage text data; the sending module is used for returning the webpage text data embedded into the navigation bar component to the corresponding website server; the website server is used for sending the webpage text data embedded into the navigation bar component to a terminal, and the terminal is used for generating a target webpage according to the webpage text data embedded into the navigation bar component; sending the label dynamic data to the terminal; the label dynamic data is used for indicating the terminal to load an integrated navigation bar corresponding to the navigation bar component in the target webpage, and the integrated navigation bar comprises a plurality of webpage labels corresponding to the label dynamic data.
A web page integration apparatus, the apparatus comprising: the sending module is used for sending a webpage access request to the first website server; the webpage access request is used for indicating the first website server to acquire first webpage text data from an integrated server, and a navigation bar component is embedded in the first webpage text data; sending a tag acquisition request to the integration server; the tag obtaining request is used for indicating the integration server to obtain tag dynamic data; the receiving module is used for receiving the text data of the first webpage sent by the first website server; receiving the label dynamic data sent by the integration server; the generating module is used for analyzing the text data of the first webpage and generating a corresponding target webpage; and loading an integrated navigation bar corresponding to the navigation bar component in the target webpage according to the dynamic label data, wherein the integrated navigation bar comprises a plurality of webpage labels corresponding to the dynamic label data.
A web page integration system, the system comprising: the integration server is used for acquiring webpage original data from a plurality of website servers; performing templating processing on the plurality of webpage original data to obtain a plurality of corresponding webpage text data; embedding a pre-constructed navigation bar component into each webpage text data; the terminal is used for sending a webpage access request to the website server; the website server is used for acquiring webpage text data embedded with the navigation bar component from the integrated server according to the webpage access request; sending the webpage text data embedded with the navigation bar component to the terminal; the terminal is also used for generating a target webpage according to the webpage text data embedded into the navigation bar component; sending a tag acquisition request to the integration server; receiving label dynamic data sent by the integration server; and loading an integrated navigation bar corresponding to the navigation bar component in the target webpage according to the dynamic label data, wherein the integrated navigation bar comprises a plurality of webpage labels corresponding to the dynamic label data.
In one embodiment, the integration server is further configured to receive web page addresses corresponding to a plurality of web servers; acquiring preset attribute parameters of a navigation bar; and generating label dynamic data from the multiple webpage addresses according to the navigation bar attribute parameters.
According to the webpage integration method, the device and the system, after the integration server obtains the webpage original data from the plurality of website servers, the template processing is carried out on each webpage original data to obtain the corresponding webpage text data. The integrated server stores pre-constructed navigation bar components and pre-generated tag dynamic data. After the integrated server embeds the navigation bar component into the text data of each webpage, the integrated server returns the processed text data of the webpage to the corresponding website server, so that the website server can send the text data of the webpage to the terminal to generate the target webpage. After the integrated server receives a tag acquisition request sent by the terminal, the integrated server sends the tag dynamic data to the terminal, so that the terminal can load an integrated navigation bar corresponding to the navigation bar component in a target webpage according to the tag dynamic data, and the integrated navigation bar comprises a plurality of webpage tags. The integration server processes the webpage original data corresponding to the webpage to be integrated to obtain webpage text data, and provides dynamic label data, so that the terminal can generate a target webpage with the same webpage style and including an integrated navigation bar. When the webpage for integration needs to be added, the dynamic data of the label can be directly updated at the integration server side without redeveloping other webpages, so that the quick integration of the webpage is realized.
Drawings
FIG. 1 is a diagram illustrating an exemplary scenario for implementing a web page integration method;
FIG. 2 is a flowchart illustrating a web page integration method according to an embodiment;
FIG. 3 is a flowchart illustrating a web page integration method according to another embodiment;
FIG. 4 is a flowchart illustrating a web page integration method according to another embodiment;
FIG. 5 is a block diagram showing the structure of a web page integration apparatus according to an embodiment;
FIG. 6 is a block diagram showing the construction of a web page integration apparatus according to another embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment;
fig. 8 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first web server may be referred to as a second web server, and similarly, a second web server may be referred to as a first web server, without departing from the scope of the present disclosure. The first web server and the second web server are both web servers, but they are not the same web server.
The web page integration method provided by the application can be applied to the application environment shown in fig. 1. Wherein the integration server 102 is in communication with a plurality of web servers 104 over a network. Wherein the web servers 104 include a first web server 104a and a second web server 104 b. The integration server 102 also communicates with the terminal 106 via a network, and the first and second site servers 104a and 104b communicate with the terminal 106 via the network, respectively. The terminal 106 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the integrated server 102, the first website server 104a, and the second website server 104b may be implemented by independent servers or a server cluster formed by a plurality of servers.
After the integration server 102 obtains the web page raw data from the plurality of web servers 104, the integration server 102 performs templating processing on the plurality of web page raw data respectively to obtain corresponding web page text data. The integration server 102 also embeds the pre-constructed navigation bar component into the text data of each web page and returns the processed text data of the web page to the corresponding web server 104, such as sending the text data of the first web page to the first web server 104 a. When the terminal 106 sends a web page access request to the first web server 104a, the first web server 104a returns the text data of the first web page of the terminal 106. The terminal 106 may generate a corresponding target webpage after parsing the text data of the first webpage. The terminal 106 may also send a tag acquisition request to the integration server 102, and the integration server 102 may return tag dynamic data generated by the terminal 106 in advance. The terminal 102 may load a navigation bar corresponding to the navigation bar component in the target web page according to the tag dynamic data, where the navigation bar includes a plurality of web page tags corresponding to the tag dynamic data.
In one embodiment, as shown in fig. 2, a web page integration method is provided, which is described by taking the method as an example applied to the integration server 102 in fig. 1, and includes the following steps:
step 202, obtaining raw data of web pages from a plurality of web servers.
The website server is a server for publishing and applying a website on the internet. The website server stores the original webpage data of the website. A website refers to a collection of related web pages that are created using a programming Language such as HTML (Hyper Text Markup Language) to display specific content. For example, a company may provide different sales websites for various types of products under flags, such as an insurance product website and a fund product website. The web page raw data for each web site may be stored at the same or different web site servers. The original data of the web page refers to related data of a part or all of the web pages in the original website, such as HTML files, CSS (Cascading Style Sheets) files, web page pictures, and the like.
In one embodiment, the web page raw data of the website home page may be obtained from a website server. The home page of a website is a portal page of the website, and is often edited to facilitate understanding of the website and to guide internet users to browse the contents of other parts of the website. Only the website home page can be processed, and the website home pages of a plurality of websites can be integrated.
And 204, performing templating processing on the plurality of webpage original data to obtain corresponding plurality of webpage text data.
The webpage text data refers to data obtained after template processing of webpage original data. The styles of the web pages corresponding to different original websites are different, so that the template processing needs to be performed on the original data of the web pages. For example, one or more web page attributes such as background color, font color, font size, text alignment mode, etc. of the web page are adjusted to be uniform parameters.
In one embodiment, a web page template may be pre-constructed. After the original data of the web page is obtained, the original data of the web page can be imported into a web page template, and the original data of the web page is adjusted into the text data of the web page with uniform attributes of all web pages through the web page template. And a CSS template file can be constructed in advance, and after the webpage original data are obtained, the CSS file in the webpage original data is replaced by the CSS template file constructed in advance.
In one embodiment, when detecting that the original data of the web page contains a < font > tag (footer tag description), the < font > tag in the original data of the web page may be deleted, and a preset < font > tag may be inserted into the original data of the web page in which the original < font > tag is deleted. Wherein the footer tag description typically contains the author of the document, copyright information, usage terms links, contact information, and the like. Meanwhile, the webpage to be integrated is replaced by the uniform footer label description, so that the style of the webpage is more uniform, and the company or organization to which the integrated webpage belongs can be embodied.
Step 206, embedding the pre-constructed navigation bar components into the text data of each webpage.
The navigation bar component refers to a component for generating a navigation bar (navigator). The navigation bar is a row of horizontal navigation buttons which are positioned at the top or side area of the page and positioned above or below the header banner picture, and plays a role in linking different web pages or all pages in the application program. The components have visual forms and are constituent elements of the web page. The navigation bar component is a common component common to web pages provided by the integration server that require integration.
In one embodiment, a common front-end component library (component library) may be developed in advance, and the pre-built navigation bar component is embedded into the text data of each webpage, including: and integrating the front-end component library into the webpage text data. The front-end component library can comprise a navigation bar component and a tail component. The navigation bar component is used for generating a navigation bar in a webpage, and the tail component is used for generating a footer label description specification in the webpage.
Step 208, returning the webpage text data embedded with the navigation bar component to a corresponding website server; the website server is used for sending the webpage text data embedded into the navigation bar component to the terminal, and the terminal is used for generating a target webpage according to the webpage text data embedded into the navigation bar component.
After the original webpage data acquired from the website server are processed to obtain the webpage text data embedded with the navigation bar component, the processed webpage text data can be returned to the corresponding website server.
In one embodiment, the integration server may print the web page raw data with the corresponding web server identifier after acquiring the web page raw data from the web server. The integrated server can send the processed website text data to the corresponding website server through the distributed message queue according to the website server identification.
In one embodiment, the terminal may send a web page access request to the web server, and the web server is configured to send corresponding web page text data to the terminal according to the web page access request. The webpage access request is used for carrying out a webpage access request and can be generated when a preset webpage access operation is detected. For example, the web page access operation may be a user inputting a URL (Uniform Resource Locator) corresponding to web page body data in the web server in an address bar of the browser. After the website server responds to the webpage access request and sends the corresponding webpage text data to the terminal, the terminal can generate a corresponding target webpage according to the webpage text data.
Step 210, when receiving a tag obtaining request sent by a terminal, obtaining pre-generated tag dynamic data.
The tag acquisition request is a request which is triggered in the process of generating a webpage by the terminal and is used for generating webpage tags of a navigation bar in the webpage. The label dynamic data refers to the related data of the webpage label used for generating the navigation bar in the webpage. As the demand of webpage integration is changed continuously, the webpage labels in the navigation bar in the target webpage generated by the terminal are required to be changed accordingly. For example, when an integrated web page needs to be newly added, a corresponding web page tag needs to be added to the navigation bar. Therefore, the latest tag dynamic data can be acquired when a tag acquisition request sent by the terminal is received.
In one embodiment, the terminal may send a tag acquisition request to the integration server through an asynchronous loading technology, and acquire pre-generated tag dynamic data from the integration server. Asynchronous loading is also called non-blocking loading, and means that the browser continues to process subsequent pages while downloading and executing JS (JavaScript, an interpreted scripting language). For example, the terminal may call the integrated server interface to obtain the latest tag dynamic data through ajax (Asynchronous Javascript And XML, which is a web page development technology for creating an interactive web application). When the integration server detects that the terminal calls the integration server interface, the integration server can be considered to receive the tag acquisition request sent by the terminal.
Step 212, sending the dynamic data of the tag to the terminal; the label dynamic data is used for indicating the terminal to load an integrated navigation bar corresponding to the navigation bar component in the target webpage, and the integrated navigation bar comprises a plurality of webpage labels corresponding to the label dynamic data.
The integrated navigation bar refers to a navigation bar integrated with a plurality of webpage labels. The webpage labels refer to labels which are used for jumping to other webpages in the navigation bar and can be clicked or touched. The web page label can be a label in a text form or a label in a picture button form. The position of the webpage label in the navigation bar can be fixed, and can also be adjusted according to the detected movement operation of the webpage label according to the user requirement. The web page tabs in the navigation bar may also be automatically stacked according to the display width.
In one embodiment, each web tag has a corresponding web server, and the target web page corresponding to each web tag can be generated according to web page text data in the corresponding web server. For example, as shown in fig. 1, the terminal 106 may generate the target web page after obtaining the text data of the first web page from the first web server 104a, and the terminal 106 may also obtain the tag dynamic data from the integration server 102, so as to load the integrated navigation bar in the target web page. The integrated navigation bar may include a web tag corresponding to the second web server 104 b. When the terminal 106 detects a click operation on the tag, the terminal 106 may acquire the text data of the second web page from the second web server 104b and generate the target web page. An integrated navigation bar may also be included in the target web page corresponding to the second server 104 b.
In one embodiment, after the terminal calls the integrated server interface through ajax to obtain the latest tag dynamic data, the terminal may load and render an integrated navigation bar containing a plurality of web page tags in the target web page according to the tag dynamic data.
In the web page integration method, after the integration server obtains the web page original data from the plurality of web servers, the integration server carries out templating processing on each web page original data to obtain the corresponding web page text data. The integrated server stores pre-constructed navigation bar components and pre-generated tag dynamic data. After the integrated server embeds the navigation bar component into the text data of each webpage, the integrated server returns the processed text data of the webpage to the corresponding website server, so that the website server can send the text data of the webpage to the terminal to generate the target webpage. After the integrated server receives a tag acquisition request sent by the terminal, the integrated server sends the tag dynamic data to the terminal, so that the terminal can load an integrated navigation bar corresponding to the navigation bar component in a target webpage according to the tag dynamic data, and the integrated navigation bar comprises a plurality of webpage tags. The integration server processes the webpage original data corresponding to the webpage to be integrated to obtain webpage text data, and provides dynamic label data, so that the terminal can generate a target webpage with the same webpage style and including an integrated navigation bar. When the webpage for integration needs to be added, the dynamic data of the label can be directly updated at the integration server side without redeveloping other webpages, so that the quick integration of the webpage is realized.
In one embodiment, before acquiring the pre-generated tag dynamic data, the method further includes: receiving web page addresses corresponding to a plurality of web servers; acquiring preset attribute parameters of a navigation bar; and generating label dynamic data from the multiple webpage addresses according to the attribute parameters of the navigation bar.
The web page address may be a web page address corresponding to a plurality of web pages to be integrated, or a web page address corresponding to a first page of a plurality of websites to be integrated. The web page address can be a web page address input by a user, and can also be a web page address extracted from the original data of the website by the integration server. The tag dynamic data contains a plurality of web page addresses and navigation bar attribute parameters. The navigation bar attribute parameters refer to parameters for configuring one or more attributes of the color, the length and the width, the position of the navigation bar, the position of a webpage label and the like of the navigation bar. The navigation bar attribute parameters can be parameters input by a user or parameters comprehensively generated by the integrated server according to various webpage attribute parameters corresponding to a plurality of webpage original data. By generating the dynamic label data according to the plurality of web page addresses, and using the dynamic label data to generate the navigation bar in the target web page, the specific web page label in the navigation bar can be conveniently changed through the integration server, so that the web pages corresponding to the integrated plurality of web server can be efficiently adjusted.
In one embodiment, the integration server may provide a tag management page to manage tag dynamic data. The administrator can add, delete and change the web page address through the label management page, and the web page label generated according to the label dynamic data can be correspondingly added, deleted and changed. The administrator can also adjust the sequence of the web page addresses, and the position sequence of the web page tags generated according to the dynamic tag data can be correspondingly adjusted. The administrator can also add, delete and change the attribute parameters of the navigation bar through the tag management page, and the attributes of the navigation bar can be changed accordingly.
In one embodiment, before acquiring the pre-generated tag dynamic data, the method further includes: extracting corresponding webpage site map data from a plurality of webpage original data; analyzing the webpage site map data to obtain a corresponding multi-level site tree; and generating label dynamic data according to the multi-level site tree.
The web site map data refers to a navigation web page file generated by the structure, frame, content and the like of a website in the web page original data. The web site map data includes all links of the web site, and is a container of all links of the web site. The multi-level site tree refers to a tree structure file generated according to the site map data of the web page. The multi-level site tree has multiple levels of nodes, each of which may correspond to a link contained in a website. The nodes of each level can be used to generate a navigation bar of the corresponding level, and the webpage labels in the navigation bar correspond to the nodes of the corresponding level in the multi-level site tree.
For example, when the multi-level site tree has three levels of nodes, the navigation bar generated according to the corresponding tag dynamic data may also have a three-level structure. The second and third hierarchical navigation bars may be presented in a drop down list. When a jump operation, such as a click operation or a double click operation, acting on the webpage label in the first-level navigation bar is detected, the webpage corresponding to the acted webpage label can be jumped to. When an expansion operation, such as a mouse-over operation or a long-press operation, acting on a webpage tag in the first-level navigation bar is detected, a second-level navigation bar corresponding to the acted webpage tag may be displayed. When an expansion operation acting on a webpage tag in the second navigation bar is detected, a third hierarchical navigation bar corresponding to the acted webpage tag may be displayed. By constructing the navigation bar into a multi-level structure, more webpage labels can be integrated in the navigation bar, and a user can quickly and accurately select a webpage which the user wants to jump from the navigation bar.
In an embodiment, as shown in fig. 3, another web page integration method is provided, which is described by taking the method as an example applied to the terminal 106 in fig. 1, and includes the following steps:
step 302, sending a webpage access request to a first website server; the web page access request is used for instructing the first website server to acquire first web page text data from the integration server, and the navigation bar component is embedded in the first web page text data.
The webpage access request is a request which is generated by the terminal according to the webpage access operation and is used for accessing the website server and realizing webpage loading. The first website server refers to a website server which is accessed by a user for the first time. The website server is a server for publishing and applying a website on the internet. The website server stores the original webpage data of the corresponding website. For example, when the user opens the browser and inputs the web address corresponding to the first web server in the web address bar, the user may consider to trigger sending the web access request to the first web server. The integrated server is used for processing webpage original data in a plurality of website servers and generating webpage text data containing navigation bar components, and is also used for providing dynamic label data.
In one embodiment, before the terminal sends the webpage access request to the first website server, the first website server sends the first webpage original data to the integration server, and the integration server performs templating processing on the first webpage original data and embeds the pre-constructed navigation bar component to obtain the processed first webpage text data. And the integration server returns the text data of the first webpage embedded in the navigation bar component to the corresponding first website server.
Step 304, receiving the text data of the first webpage sent by the first website server.
The web page access request includes a web page identifier, such as a web page address. After receiving a webpage access request sent by a terminal, a first website server can obtain corresponding first webpage text data according to a webpage identifier in the webpage access request and send the obtained first webpage text data to the terminal.
And step 306, analyzing the text data of the first webpage to generate a corresponding target webpage.
The target webpage is a webpage generated according to the webpage text data and is also a webpage corresponding to the webpage access request. The first webpage text data comprise a first webpage source code, the first webpage text data are analyzed, and a corresponding target webpage is generated, wherein the method comprises the following steps: a DOM tree (Document Object Model) is created from HTML tags of the first web page source code. And creating a CSSOM (Cascading Style Sheets Object Model) according to the CSS labels, and connecting the DOM tree and the CSSOM tree to generate a rendering tree. And drawing the target webpage according to the rendering tree and displaying the target webpage on a screen.
In one embodiment, the target webpage generated according to the text data of the first webpage can contain a navigation bar corresponding to the navigation bar component. Because the dynamic data of the tags corresponding to the webpage tags in the navigation bar is not obtained, the position of the webpage tags in the currently generated navigation bar can be empty, or can be a preset text, such as "loading", so as to prompt the user that the currently generated target webpage is not loaded completely.
Step 308, sending a tag acquisition request to the integration server; the tag obtaining request is used for instructing the integration server to obtain tag dynamic data.
The tag acquisition request refers to a request for acquiring tag dynamic data. The label dynamic data refers to relevant data of a webpage label used for generating a navigation bar in a webpage. As the demand of webpage integration is changed continuously, the webpage labels in the navigation bar in the target webpage generated by the terminal are required to be changed accordingly. For example, when an integrated web page needs to be newly added, a corresponding web page tag needs to be added to the navigation bar. Therefore, the integration server can acquire the latest tag dynamic data when receiving the tag acquisition request sent by the terminal.
In one embodiment, the terminal may call the integrated server interface to obtain the latest tag dynamic data through ajax. When the terminal calls the interface of the integration server, the terminal can be considered to send a tag acquisition request to the integration server. The terminal can acquire the label dynamic data generated in advance when detecting that the interface is called.
And step 310, receiving the dynamic tag data sent by the integration server.
Step 312, loading an integrated navigation bar corresponding to the navigation bar component in the target webpage according to the dynamic data of the tag, where the integrated navigation bar includes a plurality of webpage tags corresponding to the dynamic data of the tag.
The integrated navigation bar refers to a navigation bar integrated with a plurality of webpage labels. The webpage labels refer to labels which are used for jumping to other webpages in the navigation bar and can be clicked or touched. The web page label can be a label in a text form or a label in a picture button form. The position of the webpage label in the navigation bar can be fixed, and can also be adjusted according to the detected movement operation of the webpage label according to the user requirement. The web page tabs in the navigation bar may also be automatically stacked according to the display width. After receiving the dynamic label data sent by the integration server, the terminal can load the webpage labels in the integrated navigation bar in the target webpage according to the dynamic label data.
In the webpage integration method, after the terminal sends a webpage access request to the first website server, the first website server obtains the text data of the first webpage embedded with the navigation bar component from the integration server. After receiving the first webpage text data sent by the first website server, the terminal can generate a corresponding target webpage according to the first webpage text data. And the terminal sends a tag acquisition request to the integration server to obtain tag dynamic data. The terminal can load an integrated navigation bar corresponding to the navigation bar component in the target webpage according to the acquired dynamic data of the labels, and the integrated navigation bar can contain a plurality of labels. The method comprises the steps that webpage text data are obtained through processing of an integration server and are sent to a terminal through a first website server, so that the terminal can generate a target webpage with the same webpage style, and the terminal can load a navigation bar containing a plurality of webpage labels in the target webpage through providing label dynamic data. When the webpage for integration needs to be added, the dynamic data of the label can be directly updated at the integration server side without redeveloping other webpages, so that the quick integration of the webpage is realized.
In one embodiment, after loading the integrated navigation bar corresponding to the navigation bar component in the target webpage according to the tag dynamic data, the method further comprises the following steps: detecting webpage skipping operation acting on a webpage label; according to the website skipping operation, sending a webpage skipping request to a second website server corresponding to the acted webpage label; the webpage jump request is used for indicating a second website server to acquire second webpage text data from the integrated server, and a navigation bar component is embedded in the second webpage text data; receiving second webpage text data sent by a second website server; and analyzing the text data of the second webpage to generate a corresponding target webpage.
The web page jump operation is an operation for performing web page jump. The webpage jump operation includes, but is not limited to, a single click operation or a double click operation on a webpage tag. The webpage jump request refers to a request generated by triggering according to webpage jump operation. And the website server corresponding to the webpage label acted by the webpage jump operation is called a second website server. The second web page text data refers to web page text data corresponding to the web page jump request stored in the second website server. The terminal can generate the target webpage after the jump according to the text data of the second webpage. Correspondingly, the text data of the second webpage can also be obtained after the integration server performs templating processing on the website original data corresponding to the second website server.
In the above-described web page integration method, after detecting a web page jump operation that acts on a web page tag in a navigation bar of a target web page, a web page jump request may be sent to a second web server corresponding to the acted web page tag. After the terminal receives the text data of the second webpage returned by the second website server, a corresponding target webpage can be generated, and webpage skipping is achieved.
In one embodiment, the second web site text data also has a navigation bar component embedded therein. After the text data of the second webpage is analyzed and a corresponding target webpage is generated, the method further comprises the following steps: sending a tag acquisition request to an integration server; the label acquisition request is used for indicating the integration server to acquire label dynamic data; receiving label dynamic data sent by an integration server; and loading an integrated navigation bar corresponding to the navigation bar component in a target webpage corresponding to the text data of the second website according to the dynamic label data, wherein the integrated navigation bar comprises a plurality of webpage labels corresponding to the dynamic label data.
In the webpage integration method, the first webpage original data in the first website server and the second webpage original data in the second website server are subjected to template processing to respectively obtain the first webpage text data and the second webpage text data, and the same navigation bar component is respectively embedded in the first webpage text data and the second webpage text data. And associating the target webpage corresponding to the first website server with the target webpage corresponding to the second website server through the navigation bar component, so as to realize the integration of the webpages.
In one embodiment, each web tag has a corresponding web server, and the target web page corresponding to each web tag can be generated according to web page text data in the corresponding web server. For example, as shown in fig. 1, the terminal 106 may generate the target web page after obtaining the text data of the first web page from the first web server 104a, and the terminal 106 may also obtain the tag dynamic data from the integration server 102, so as to load the integrated navigation bar in the target web page. The integrated navigation bar may include a web tag corresponding to the second web server 104 b. When the terminal 106 detects a click operation on the tag, the terminal 106 may acquire the text data of the second web page from the second web server 104b and generate the target web page. An integrated navigation bar may also be included in the target web page corresponding to the second server 104 b.
In one embodiment, the method further comprises: detecting a tag moving operation acting on a webpage tag; determining the display positions of the plurality of webpage labels according to the label moving operation, and displaying the corresponding webpage labels at the determined display positions; generating label position data according to the display positions of the plurality of webpage labels; sending the tag location data to an integration server; the tag location data is used to instruct the integration server to generate tag dynamic data.
The tag moving operation is an operation for changing the display position of the web tag in the navigation bar. For example, the operation of dragging a certain distance and then releasing after selection may be an operation of directly selecting a display position of a web page label. For example, when the selection and drag operation on the web page tab is detected, the display position of the applied web page tab is determined according to the released position. After the user performs the tag moving operation, it indicates that the display positions of the current plurality of web tags are the display positions desired by the user, and the display positions of the current plurality of web tags may be saved, so that when the user accesses the target web page next time, the plurality of web tags can still be the display positions after the previous tag moving operation. Tag location data is generated by determining display locations of a plurality of web tags. The tag location data may be a mapping file of the web page address and the corresponding display location. After the terminal sends the tag position data to the integration server, the integration server can generate tag dynamic data according to the tag position data, and the tag dynamic data are used for being sent to the terminal when a tag obtaining request sent by the terminal is received next time.
In one embodiment, the tag location data includes a terminal identification. The terminal identification includes, but is not limited to, the IP address of the terminal. When the integrated server receives a tag acquisition request sent by a terminal, the terminal identification contained in the tag acquisition request can be analyzed, and corresponding tag dynamic data is acquired according to the analyzed terminal identification and sent to the terminal.
In one embodiment, whether to trigger generation of the webpage jump request may be determined according to a selection duration acting on a webpage tag in the navigation bar, such as a click duration or a touch duration, or a movement distance, such as a movement distance after a mouse is selected or a movement distance after a touch. The distance of movement may be the relative distance from the initial selected position to the release position. For example, when the selection duration is from a first duration to a second duration, a webpage jump request can be triggered and generated to perform webpage jump; and when the selection duration is longer than the second duration, not triggering to generate a webpage jump request. For another example, when the sliding distance is from the first distance to the second distance, a webpage jump request can be triggered and generated to perform webpage jump; and when the selection duration is greater than the second distance, not triggering to generate a webpage jump request.
In one embodiment, as illustrated in fig. 4, there is provided a web page integration method including the steps of:
step 402, an integration server acquires webpage original data from a plurality of website servers; the web server includes a first web server.
Step 404, the integration server performs templating processing on the plurality of web page raw data to obtain corresponding text data of the plurality of web pages.
At step 406, the integration server embeds the pre-built navigation bar components into the text data of each web page.
And step 408, the integration server returns the webpage text data embedded in the navigation bar component to the corresponding website server.
Step 410, the terminal sends a webpage access request to a first website server; the web page access request is used for instructing the first website server to acquire the first web page text data embedded in the navigation bar component from the integrated server.
Step 412, when receiving a tag obtaining request sent by the terminal, obtaining pre-generated tag dynamic data.
Step 414, sending the tag dynamic data to the terminal; the label dynamic data is used for indicating the terminal to load an integrated navigation bar corresponding to the navigation bar component in the target webpage, and the integrated navigation bar comprises a plurality of webpage labels corresponding to the label dynamic data.
In step 416, the terminal receives the first web page text data embedded in the navigation bar component sent by the first web server.
And 418, the terminal analyzes the text data of the first webpage embedded into the navigation bar component to generate a corresponding target webpage.
In step 420, the terminal sends a tag acquisition request to the integration server.
And 422, the integration server acquires the label dynamic data generated in advance and sends the label dynamic data to the terminal.
Step 424, the terminal loads an integrated navigation bar corresponding to the navigation bar component in the target webpage according to the dynamic data of the tag, and the integrated navigation bar includes a plurality of webpage tags corresponding to the dynamic data of the tag.
In the web page integration method, after the integration server obtains the web page original data from the plurality of web servers, the integration server carries out templating processing on each web page original data to obtain the corresponding web page text data. The integrated server stores pre-constructed navigation bar components and pre-generated tag dynamic data. After the integrated server embeds the navigation bar component into the text data of each webpage, the integrated server returns the processed text data of the webpage to the corresponding website server, so that the website server can send the text data of the webpage to the terminal to generate the target webpage. After the integrated server receives a tag acquisition request sent by the terminal, the integrated server sends the tag dynamic data to the terminal, so that the terminal can load an integrated navigation bar corresponding to the navigation bar component in a target webpage according to the tag dynamic data, and the integrated navigation bar comprises a plurality of webpage tags. The integration server processes the webpage original data corresponding to the webpage to be integrated to obtain webpage text data, and provides dynamic label data, so that the terminal can generate a target webpage with the same webpage style and including an integrated navigation bar. When the webpage for integration needs to be added, the dynamic data of the label can be directly updated at the integration server side without redeveloping other webpages, so that the quick integration of the webpage is realized.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided a web page integration apparatus 500 including: an obtaining module 502, configured to obtain original web page data from multiple web servers; when a tag acquisition request sent by a terminal is received, acquiring pre-generated tag dynamic data; the processing module 504 is configured to perform templating processing on the multiple pieces of web page original data to obtain corresponding multiple pieces of web page text data; an embedding module 506, configured to embed a pre-constructed navigation bar component into text data of each web page; a sending module 508, configured to return the webpage text data embedded in the navigation bar component to a corresponding website server; the website server is used for sending the webpage text data embedded into the navigation bar component to the terminal, and the terminal is used for generating a target webpage according to the webpage text data embedded into the navigation bar component; sending the dynamic data of the tag to a terminal; the label dynamic data is used for indicating the terminal to load an integrated navigation bar corresponding to the navigation bar component in the target webpage, and the integrated navigation bar comprises a plurality of webpage labels corresponding to the label dynamic data.
In one embodiment, the apparatus further comprises: the generating module is used for receiving webpage addresses corresponding to a plurality of website servers; acquiring preset attribute parameters of a navigation bar; and generating label dynamic data from the multiple webpage addresses according to the attribute parameters of the navigation bar.
In one embodiment, the generating module is further configured to extract corresponding webpage site map data from the plurality of webpage raw data; analyzing the webpage site map data to obtain a corresponding multi-level site tree; and generating label dynamic data according to the multi-level site tree.
In one embodiment, as shown in fig. 6, there is provided a web page integration apparatus 600 including: a sending module 602, configured to send a web page access request to a first website server; the webpage access request is used for indicating the first website server to acquire first webpage text data from the integrated server, and a navigation bar component is embedded in the first webpage text data; sending a tag acquisition request to an integration server; the label acquisition request is used for indicating the integration server to acquire label dynamic data; a receiving module 604, configured to receive first webpage text data sent by a first website server; receiving label dynamic data sent by an integration server; a generating module 606, configured to analyze text data of the first webpage and generate a corresponding target webpage; and loading an integrated navigation bar corresponding to the navigation bar component in the target webpage according to the dynamic label data, wherein the integrated navigation bar comprises a plurality of webpage labels corresponding to the dynamic label data.
In one embodiment, the device further comprises a jump module for detecting a webpage jump operation acting on the webpage tag; according to the website skipping operation, sending a webpage skipping request to a second website server corresponding to the acted webpage label; the webpage jump request is used for indicating a second website server to acquire second webpage text data from the integrated server, and a navigation bar component is embedded in the second webpage text data; receiving second webpage text data sent by a second website server; and analyzing the text data of the second webpage to generate a corresponding target webpage.
In one embodiment, the generation module 606 is further configured to detect a tag movement operation applied to a web page tag; determining the display positions of the plurality of webpage labels according to the label moving operation, and displaying the corresponding webpage labels at the determined display positions; generating label position data according to the display positions of the plurality of webpage labels; the sending module 602 is further configured to send the tag location data to the integration server; the tag location data is used to instruct the integration server to generate tag dynamic data.
For specific limitations of the web page integration apparatus, reference may be made to the above limitations of the web page integration method, which will not be described herein again. The modules in the web page integration apparatus may be wholly or partially implemented by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in fig. 1, there is provided a web page integration system including: an integration server 102, configured to obtain web page raw data from a plurality of website servers 104; the integration server 102 performs templating processing on the plurality of webpage original data to obtain corresponding plurality of webpage text data; the integration server 102 embeds the pre-constructed navigation bar component into the text data of each webpage; a terminal 106, configured to send a web page access request to the website server 104; the website server 104 is used for acquiring webpage text data embedded with the navigation bar component from the integrated server 102 according to the webpage access request; the website server 104 sends the webpage text data embedded with the navigation bar component to the terminal 106; the terminal 106 is further configured to generate a target webpage according to the webpage text data embedded in the navigation bar component; the terminal 106 sends a tag acquisition request to the integration server 102; the terminal 106 receives the label dynamic data sent by the integration server; and the terminal 106 loads an integrated navigation bar corresponding to the navigation bar component in the target webpage according to the dynamic label data, wherein the integrated navigation bar comprises a plurality of webpage labels corresponding to the dynamic label data.
In one embodiment, the integration server 102 is further configured to receive web page addresses corresponding to a plurality of web site servers 104; the integration server 102 acquires preset navigation bar attribute parameters; the integration server 102 generates tag dynamic data from the plurality of web page addresses according to the navigation bar attribute parameters.
In one embodiment, the integration server 102 is further configured to extract corresponding web site map data from a plurality of web page raw data; the integration server 102 analyzes the webpage site map data to obtain a corresponding multi-level site tree integration server 102; and generating label dynamic data according to the multi-level site tree.
In one embodiment, the terminal 106 is further configured to detect a tag movement operation applied to a web tag; the terminal 106 determines the display positions of the plurality of webpage labels according to the label moving operation, and displays the corresponding webpage labels at the determined display positions; the terminal 106 generates label position data according to the display positions of the plurality of webpage labels; the terminal 106 sends the tag location data to the integration server 102; the terminal 106 tag location data is used to instruct the integration server 102 to generate tag dynamic data.
In one embodiment, a computer device is provided, which may be a server, such as the integration server 102 in fig. 1, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing webpage text data, label dynamic data and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a web page integration method.
In one embodiment, another computer device is provided, which may be a terminal, such as terminal 106 in FIG. 1, whose internal structure may be as shown in FIG. 8. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a web page integration method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the configurations shown in fig. 7 and 8 are only block diagrams of some of the configurations relevant to the present application, and do not constitute a limitation on the computing devices to which the present application is applied, and a particular computing device may include more or less components than those shown in the figures, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: acquiring webpage original data from a plurality of website servers; performing templating processing on the plurality of webpage original data to obtain corresponding plurality of webpage text data; embedding a pre-constructed navigation bar component into text data of each webpage; returning the webpage text data embedded into the navigation bar component to the corresponding website server; the website server is used for sending the webpage text data embedded into the navigation bar component to the terminal, and the terminal is used for generating a target webpage according to the webpage text data embedded into the navigation bar component; when a tag acquisition request sent by a terminal is received, acquiring pre-generated tag dynamic data; sending the dynamic data of the tag to a terminal; the label dynamic data is used for indicating the terminal to load an integrated navigation bar corresponding to the navigation bar component in the target webpage, and the integrated navigation bar comprises a plurality of webpage labels corresponding to the label dynamic data.
In one embodiment, the processor, when executing the computer program, further comprises, prior to the step of obtaining pre-generated tag dynamic data, implementing the steps of: receiving web page addresses corresponding to a plurality of web servers; acquiring preset attribute parameters of a navigation bar; and generating label dynamic data from the multiple webpage addresses according to the attribute parameters of the navigation bar.
In one embodiment, the processor, when executing the computer program, further comprises, prior to the step of obtaining pre-generated tag dynamic data, implementing the steps of: extracting corresponding webpage site map data from a plurality of webpage original data; analyzing the webpage site map data to obtain a corresponding multi-level site tree; and generating label dynamic data according to the multi-level site tree.
In one embodiment, another computer device is provided, comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: sending a webpage access request to a first website server; the webpage access request is used for indicating the first website server to acquire first webpage text data from the integrated server, and a navigation bar component is embedded in the first webpage text data; receiving first webpage text data sent by a first website server; analyzing text data of the first webpage to generate a corresponding target webpage; sending a tag acquisition request to an integration server; the label acquisition request is used for indicating the integration server to acquire label dynamic data; receiving label dynamic data sent by an integration server; and loading an integrated navigation bar corresponding to the navigation bar component in the target webpage according to the dynamic label data, wherein the integrated navigation bar comprises a plurality of webpage labels corresponding to the dynamic label data.
In one embodiment, the processor, when executing the computer program, after the step of loading the integrated navigation bar corresponding to the navigation bar component in the target webpage according to the tag dynamic data is implemented, further comprises the step of: detecting webpage skipping operation acting on a webpage label; according to the website skipping operation, sending a webpage skipping request to a second website server corresponding to the acted webpage label; the webpage jump request is used for indicating a second website server to acquire second webpage text data from the integrated server, and a navigation bar component is embedded in the second webpage text data; receiving second webpage text data sent by a second website server; and analyzing the text data of the second webpage to generate a corresponding target webpage.
In one embodiment, the processor, when executing the computer program, further performs the steps of: detecting a tag moving operation acting on a webpage tag; determining the display positions of the plurality of webpage labels according to the label moving operation, and displaying the corresponding webpage labels at the determined display positions; generating label position data according to the display positions of the plurality of webpage labels; sending the tag location data to an integration server; the tag location data is used to instruct the integration server to generate tag dynamic data.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring webpage original data from a plurality of website servers; performing templating processing on the plurality of webpage original data to obtain corresponding plurality of webpage text data; embedding a pre-constructed navigation bar component into text data of each webpage; returning the webpage text data embedded into the navigation bar component to the corresponding website server; the website server is used for sending the webpage text data embedded into the navigation bar component to the terminal, and the terminal is used for generating a target webpage according to the webpage text data embedded into the navigation bar component; when a tag acquisition request sent by a terminal is received, acquiring pre-generated tag dynamic data; sending the dynamic data of the tag to a terminal; the label dynamic data is used for indicating the terminal to load an integrated navigation bar corresponding to the navigation bar component in the target webpage, and the integrated navigation bar comprises a plurality of webpage labels corresponding to the label dynamic data.
In one embodiment, the computer program when executed by the processor further comprises, prior to the step of obtaining pre-generated tag dynamic data, implementing the steps of: receiving web page addresses corresponding to a plurality of web servers; acquiring preset attribute parameters of a navigation bar; and generating label dynamic data from the multiple webpage addresses according to the attribute parameters of the navigation bar.
In one embodiment, the computer program when executed by the processor further comprises, prior to the step of obtaining pre-generated tag dynamic data, implementing the steps of: extracting corresponding webpage site map data from a plurality of webpage original data; analyzing the webpage site map data to obtain a corresponding multi-level site tree; and generating label dynamic data according to the multi-level site tree.
In one embodiment, another computer-readable storage medium is provided, having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of: sending a webpage access request to a first website server; the webpage access request is used for indicating the first website server to acquire first webpage text data from the integrated server, and a navigation bar component is embedded in the first webpage text data; receiving first webpage text data sent by a first website server; analyzing text data of the first webpage to generate a corresponding target webpage; sending a tag acquisition request to an integration server; the label acquisition request is used for indicating the integration server to acquire label dynamic data; receiving label dynamic data sent by an integration server; and loading an integrated navigation bar corresponding to the navigation bar component in the target webpage according to the dynamic label data, wherein the integrated navigation bar comprises a plurality of webpage labels corresponding to the dynamic label data.
In one embodiment, the computer program when executed by the processor, after the step of loading the integrated navigation bar corresponding to the navigation bar component in the target webpage according to the tag dynamic data, further comprises the step of: detecting webpage skipping operation acting on a webpage label; according to the website skipping operation, sending a webpage skipping request to a second website server corresponding to the acted webpage label; the webpage jump request is used for indicating a second website server to acquire second webpage text data from the integrated server, and a navigation bar component is embedded in the second webpage text data; receiving second webpage text data sent by a second website server; and analyzing the text data of the second webpage to generate a corresponding target webpage.
In one embodiment, the computer program when executed by the processor further performs the steps of: detecting a tag moving operation acting on a webpage tag; determining the display positions of the plurality of webpage labels according to the label moving operation, and displaying the corresponding webpage labels at the determined display positions; generating label position data according to the display positions of the plurality of webpage labels; sending the tag location data to an integration server; the tag location data is used to instruct the integration server to generate tag dynamic data.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A method of web page integration, the method comprising:
acquiring webpage original data from a plurality of website servers;
performing templating processing on the plurality of webpage original data to obtain a plurality of corresponding webpage text data;
embedding a pre-constructed navigation bar component into each webpage text data; the navigation bar component is a public component which is provided by the integration server and is common to the web pages needing integration;
returning the webpage text data embedded into the navigation bar component to a corresponding website server; the website server is used for sending the webpage text data embedded into the navigation bar component to a terminal, and the terminal is used for generating a target webpage according to the webpage text data embedded into the navigation bar component;
extracting corresponding webpage site map data from a plurality of webpage original data;
analyzing the webpage site map data to obtain a corresponding multi-level site tree;
generating label dynamic data according to the multi-level site tree;
when a tag acquisition request sent by the terminal is received, acquiring pre-generated tag dynamic data;
sending the label dynamic data to the terminal; the label dynamic data is used for indicating the terminal to load an integrated navigation bar corresponding to the navigation bar component in the target webpage, and the integrated navigation bar comprises a plurality of webpage labels corresponding to the label dynamic data.
2. The method of claim 1, prior to said obtaining pre-generated tag dynamic data, further comprising:
receiving web page addresses corresponding to a plurality of web servers;
acquiring preset attribute parameters of a navigation bar;
and generating label dynamic data from the multiple webpage addresses according to the navigation bar attribute parameters.
3. A method of web page integration, the method comprising:
sending a webpage access request to a first website server; the webpage access request is used for indicating the first website server to acquire first webpage text data from an integrated server, and a navigation bar component is embedded in the first webpage text data; the navigation bar component is a public component which is provided by the integration server and is common to the web pages needing integration;
receiving the text data of the first webpage sent by the first website server;
analyzing the text data of the first webpage to generate a corresponding target webpage;
sending a tag acquisition request to the integration server; the tag obtaining request is used for indicating the integration server to obtain tag dynamic data; extracting corresponding webpage site map data from a plurality of webpage original data by the integrated server, analyzing the webpage site map data to obtain a corresponding multi-level site tree, and generating the multi-level site tree in advance according to the multi-level site tree;
receiving the label dynamic data sent by the integration server;
loading an integrated navigation bar corresponding to the navigation bar component in the target webpage according to the dynamic label data, wherein the integrated navigation bar comprises a plurality of webpage labels corresponding to the dynamic label data;
loading an integrated navigation bar according to the dynamic data of the label; the integrated navigation bar comprises a first level navigation bar, a second level navigation bar and a third level navigation bar;
when the jump operation acting on the webpage label in the first hierarchical navigation bar is detected, jumping to the webpage corresponding to the acted webpage label;
when the expansion operation acting on the webpage label in the first hierarchical navigation bar is detected, displaying a second hierarchical navigation bar corresponding to the acting webpage label;
and when the expansion operation acting on the webpage labels in the second-level navigation bar is detected, displaying a third-level navigation bar corresponding to the acting webpage labels.
4. The method of claim 3, further comprising, after the loading the integrated navigation bar corresponding to the navigation bar component in the target webpage according to the tag dynamic data:
detecting webpage skipping operation acting on a webpage label;
according to the webpage skipping operation, sending a webpage skipping request to a second website server corresponding to the acted webpage label; the webpage jump request is used for indicating the second website server to acquire second webpage text data from the integrated server, and the navigation bar component is embedded in the second webpage text data;
receiving the text data of the second webpage sent by the second website server;
and analyzing the text data of the second webpage to generate a corresponding target webpage.
5. The method according to any one of claims 3 to 4, further comprising:
detecting a tag moving operation acting on a webpage tag;
determining the display positions of the plurality of webpage labels according to the label moving operation, and displaying the corresponding webpage labels at the determined display positions;
generating label position data according to the display positions of the plurality of webpage labels;
sending the tag location data to the integration server; the tag location data is used to instruct the integration server to generate tag dynamic data.
6. An apparatus for integrating web pages, the apparatus comprising:
the acquisition module is used for acquiring webpage original data from a plurality of website servers; when a tag acquisition request sent by a terminal is received, acquiring pre-generated tag dynamic data;
the processing module is used for carrying out templating processing on the plurality of webpage original data to obtain a plurality of corresponding webpage text data;
the embedding module is used for embedding a pre-constructed navigation bar component into each webpage text data; the navigation bar component is a public component which is provided by the integration server and is common to the web pages needing integration;
the generating module is used for receiving corresponding webpage site map data extracted from a plurality of webpage original data; analyzing the webpage site map data to obtain a corresponding multi-level site tree; generating label dynamic data according to the multi-level site tree;
the sending module is used for returning the webpage text data embedded into the navigation bar component to the corresponding website server; the website server is used for sending the webpage text data embedded into the navigation bar component to a terminal, and the terminal is used for generating a target webpage according to the webpage text data embedded into the navigation bar component; sending the label dynamic data to the terminal; the label dynamic data is used for indicating the terminal to load an integrated navigation bar corresponding to the navigation bar component in the target webpage, and the integrated navigation bar comprises a plurality of webpage labels corresponding to the label dynamic data.
7. An apparatus for integrating web pages, the apparatus comprising:
the sending module is used for sending a webpage access request to the first website server; the webpage access request is used for indicating the first website server to acquire first webpage text data from an integrated server, and a navigation bar component is embedded in the first webpage text data; sending a tag acquisition request to the integration server; the tag obtaining request is used for indicating the integration server to obtain tag dynamic data; the navigation bar component is a public component which is provided by the integration server and is common to the web pages needing integration;
the receiving module is used for receiving the text data of the first webpage sent by the first website server; receiving the label dynamic data sent by the integration server; extracting corresponding webpage site map data from a plurality of webpage original data by the integrated server, analyzing the webpage site map data to obtain a corresponding multi-level site tree, and generating the multi-level site tree in advance according to the multi-level site tree;
the generating module is used for analyzing the text data of the first webpage and generating a corresponding target webpage; loading an integrated navigation bar corresponding to the navigation bar component in the target webpage according to the dynamic label data, wherein the integrated navigation bar comprises a plurality of webpage labels corresponding to the dynamic label data;
loading an integrated navigation bar according to the dynamic data of the label; the integrated navigation bar comprises a first level navigation bar, a second level navigation bar and a third level navigation bar;
when the jump operation acting on the webpage label in the first hierarchical navigation bar is detected, jumping to the webpage corresponding to the acted webpage label;
when the expansion operation acting on the webpage label in the first hierarchical navigation bar is detected, displaying a second hierarchical navigation bar corresponding to the acting webpage label;
and when the expansion operation acting on the webpage labels in the second-level navigation bar is detected, displaying a third-level navigation bar corresponding to the acting webpage labels.
8. A web page integration system, the system comprising:
the integration server is used for acquiring webpage original data from a plurality of website servers; performing templating processing on the plurality of webpage original data to obtain a plurality of corresponding webpage text data; embedding a pre-constructed navigation bar component into each webpage text data; the navigation bar component is a public component which is provided by the integration server and is common to the web pages needing integration;
the integrated server is also used for extracting corresponding webpage site map data from a plurality of webpage original data; analyzing the webpage site map data to obtain a corresponding multi-level site tree; generating label dynamic data according to the multi-level site tree;
the terminal is used for sending a webpage access request to the website server;
the website server is used for acquiring webpage text data embedded with the navigation bar component from the integrated server according to the webpage access request; sending the webpage text data embedded with the navigation bar component to the terminal;
the terminal is also used for generating a target webpage according to the webpage text data embedded into the navigation bar component; sending a tag acquisition request to the integration server; receiving label dynamic data sent by the integration server; and loading an integrated navigation bar corresponding to the navigation bar component in the target webpage according to the dynamic label data, wherein the integrated navigation bar comprises a plurality of webpage labels corresponding to the dynamic label data.
9. The system of claim 8, wherein the integration server is further configured to receive web addresses corresponding to a plurality of web servers; acquiring preset attribute parameters of a navigation bar; and generating label dynamic data from the multiple webpage addresses according to the navigation bar attribute parameters.
CN201810436241.9A 2018-05-09 2018-05-09 Webpage integration method, device and system Active CN108595697B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810436241.9A CN108595697B (en) 2018-05-09 2018-05-09 Webpage integration method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810436241.9A CN108595697B (en) 2018-05-09 2018-05-09 Webpage integration method, device and system

Publications (2)

Publication Number Publication Date
CN108595697A CN108595697A (en) 2018-09-28
CN108595697B true CN108595697B (en) 2021-02-02

Family

ID=63636429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810436241.9A Active CN108595697B (en) 2018-05-09 2018-05-09 Webpage integration method, device and system

Country Status (1)

Country Link
CN (1) CN108595697B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175301A (en) * 2019-04-08 2019-08-27 平安科技(深圳)有限公司 A kind of navigation bar configuration method and device, computer equipment and storage medium
CN110515691A (en) * 2019-08-29 2019-11-29 北京明略软件系统有限公司 The display methods and device of parameter information, storage medium, processor
CN112559930B (en) * 2019-09-26 2024-02-13 北京国双科技有限公司 Webpage integration method, webpage integration device, computer equipment and storage medium
CN112783543B (en) * 2019-11-11 2023-10-03 百度在线网络技术(北京)有限公司 Method, device, equipment and medium for generating small program distribution materials
CN114444001A (en) * 2022-01-29 2022-05-06 北京达佳互联信息技术有限公司 Website generation method and device, electronic equipment, storage medium and computer product
CN114817804A (en) * 2022-03-31 2022-07-29 北京达佳互联信息技术有限公司 Webpage generation method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070124701A1 (en) * 2005-11-17 2007-05-31 International Business Machines Corporation Pattern for navigating content in a portal
CN103136259A (en) * 2011-11-30 2013-06-05 百度在线网络技术(北京)有限公司 Method and device for processing webpage contents based on content block identification
CN106649497A (en) * 2016-10-10 2017-05-10 腾讯科技(深圳)有限公司 Method and device for displaying web pages

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070124701A1 (en) * 2005-11-17 2007-05-31 International Business Machines Corporation Pattern for navigating content in a portal
CN103136259A (en) * 2011-11-30 2013-06-05 百度在线网络技术(北京)有限公司 Method and device for processing webpage contents based on content block identification
CN106649497A (en) * 2016-10-10 2017-05-10 腾讯科技(深圳)有限公司 Method and device for displaying web pages

Also Published As

Publication number Publication date
CN108595697A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN108595697B (en) Webpage integration method, device and system
CN108304498B (en) Webpage data acquisition method and device, computer equipment and storage medium
US20190251143A1 (en) Web page rendering method and related device
CN108804159B (en) Javascript module loading method and preprocessing method and device thereof, and computer equipment
US8612420B2 (en) Configuring web crawler to extract web page information
US8762556B2 (en) Displaying content on a mobile device
CN108717435B (en) Webpage loading method, information processing method, computer equipment and storage medium
US8521892B2 (en) Method and apparatus for controlling web page advertisement through incentives and restrictions
US20140137006A1 (en) Graphical Overlay Related To Data Mining And Analytics
US20160232252A1 (en) Method for loading webpage, device and browser thereof
US10084878B2 (en) Systems and methods for hosted application marketplaces
US9934206B2 (en) Method and apparatus for extracting web page content
US9715557B2 (en) System, device and method for providing context sensitive content on a computing device
US9275018B2 (en) Techniques for analyzing web pages to determine font subsets
CN109032917B (en) Page debugging method and system, mobile terminal and computer terminal
CN110647699A (en) Web page rendering method and device, computer equipment and storage medium
CN112596714A (en) Webpage development method, device, terminal, server and storage medium
US10248392B2 (en) Replicating a web technology
CN110309457B (en) Webpage data processing method, device, computer equipment and storage medium
CN111431767B (en) Multi-browser resource synchronization method and device, computer equipment and storage medium
CN112395848A (en) Rich text display method and device, computer equipment and storage medium
TWI519980B (en) Method and device for displaying web page and computer-readable storage medium
CN113392358A (en) Static resource preloading method and device
CN110413931B (en) Data loading method and device, computer equipment and storage medium
CN108319474B (en) Page information generation method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right

Effective date of registration: 20200122

Address after: 200120 floor 15, 1333 Lujiazui Ring Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Applicant after: Weikun (Shanghai) Technology Service Co., Ltd

Address before: 200120 13 floor, 1333 Lujiazui Road, Pudong New Area free trade pilot area, Shanghai.

Applicant before: Lujiazui Shanghai international financial assets market Limited by Share Ltd

TA01 Transfer of patent application right
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant