CN111199003B - Multi-webpage window management method, management device and terminal equipment - Google Patents

Multi-webpage window management method, management device and terminal equipment Download PDF

Info

Publication number
CN111199003B
CN111199003B CN201911360035.5A CN201911360035A CN111199003B CN 111199003 B CN111199003 B CN 111199003B CN 201911360035 A CN201911360035 A CN 201911360035A CN 111199003 B CN111199003 B CN 111199003B
Authority
CN
China
Prior art keywords
webpage
data
browser
target website
web page
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
CN201911360035.5A
Other languages
Chinese (zh)
Other versions
CN111199003A (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.)
Shenzhen Kemanda Intelligent Management Science & Technology Co ltd
Original Assignee
Shenzhen Kemanda Intelligent Management Science & Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Kemanda Intelligent Management Science & Technology Co ltd filed Critical Shenzhen Kemanda Intelligent Management Science & Technology Co ltd
Priority to CN201911360035.5A priority Critical patent/CN111199003B/en
Publication of CN111199003A publication Critical patent/CN111199003A/en
Application granted granted Critical
Publication of CN111199003B publication Critical patent/CN111199003B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is applicable to the technical field of computers, and provides a method, a device and terminal equipment for managing multiple webpage windows, wherein the method comprises the following steps: when a webpage opening event of a target website in a first browser is monitored, acquiring account information of the target website corresponding to a first webpage, and generating webpage data of the first webpage in the first browser as first data; determining second webpages corresponding to the account information in the first browser, and acquiring webpage data of each second webpage in the first browser as second data; and if second data different from the first data exists, closing a second webpage corresponding to the second data different from the first data. By the method, the invalid webpage can be automatically closed when a plurality of webpage windows are correspondingly opened by the same account, and the working efficiency is improved.

Description

Multi-webpage window management method, management device and terminal equipment
Technical Field
The application belongs to the technical field of computers, and particularly relates to a multi-webpage window management method, a multi-webpage window management device and terminal equipment.
Background
With the development of internet technology, many internet management systems, such as a yard management system, have been developed. In the system, the vehicle can be monitored through the browser, the entering and exiting of the vehicle can be managed, and the like, so that the efficiency of the management of the parking lot is greatly improved.
In practical applications, a plurality of yard administrators commonly share an account of a yard management system, and a situation that a plurality of web windows are opened corresponding to one account is easy to occur. When management is carried out, only one webpage window can be operated, and other webpage windows need to be manually cleared of window data, so that the steps are complex, the labor is wasted, and the working efficiency is further reduced.
Disclosure of Invention
The embodiment of the application provides a management method, a management device and terminal equipment for a multi-webpage window, which can solve the problems of complicated steps and low efficiency when data of the multi-webpage window are cleared.
In a first aspect, an embodiment of the present application provides a method for managing multiple web windows, including:
when a webpage opening event of a target website in a first browser is monitored, acquiring account information of the target website corresponding to a first webpage, and generating webpage data of the first webpage in the first browser as first data, wherein the first webpage is a webpage of the target website opened in the webpage opening event;
Determining second webpages corresponding to the account information in the first browser, and acquiring webpage data of each second webpage in the first browser, wherein the second webpage is a webpage of the target website which is opened in the first browser before the webpage opening event, and the webpage data are second data;
and if second data different from the first data exists, closing a second webpage corresponding to the second data different from the first data.
In a possible implementation manner of the first aspect, after generating the web page data corresponding to the first web page in the first browser, the method further includes:
and clearing the cache data of the target website in the current first browser.
In a possible implementation manner of the first aspect, after the clearing the cache data of the target website in the current first browser, the method further includes:
when a page refreshing signal of any one third webpage in the first browser is monitored, acquiring webpage data of the third webpage corresponding to the page refreshing signal in the first browser, wherein the third webpage is a page of the target website which is opened in the first browser when the page refreshing signal is monitored;
Setting the cache data of the target website in the current first browser as the webpage data of a third webpage corresponding to the webpage refreshing signal in the first browser, and refreshing the third webpage corresponding to the webpage refreshing signal.
In a possible implementation manner of the first aspect, after refreshing a third web page corresponding to the page refresh signal, the method further includes:
generating webpage data of the refreshed third webpage in the first browser, wherein the webpage data is third data;
determining fourth webpages corresponding to the account information in the first browser, and acquiring webpage data of each fourth webpage in the first browser as fourth data, wherein the fourth webpages are webpages of the target websites which are opened in the first browser before refreshing third webpages corresponding to the page refreshing signals;
and if fourth data different from the third data exists, closing a fourth webpage corresponding to the fourth data different from the third data.
In a possible implementation manner of the first aspect, for any one of the first web page and the refreshed third web page, generating web page data of the web page in the first browser includes:
And if the cache data of the target website in the current first browser is empty, generating a random number, and taking the random number as the webpage data of the webpage in the first browser.
In a possible implementation manner of the first aspect, for any one of the first web page and the refreshed third web page, generating web page data of the web page in the first browser includes:
and if the cache data of the target website in the current first browser is not empty, taking the cache data of the target website in the current first browser as the webpage data of the webpage in the first browser.
In a possible implementation manner of the first aspect, after generating the web page data corresponding to the first web page in the first browser, the method further includes:
determining fifth webpages corresponding to the account information in a second browser, and acquiring webpage data of each fifth webpage in the second browser, wherein the fifth webpage is a webpage of the target website which is opened in the second browser before the webpage opening event;
And if fifth data different from the first data exists, closing a fifth webpage corresponding to the fifth data different from the first data.
In a second aspect, an embodiment of the present application provides a device for managing multiple web windows, including:
the generation unit is used for acquiring account information of a target website corresponding to a first webpage when a webpage opening event of the target website in a first browser is monitored, and generating webpage data of the first webpage in the first browser as first data, wherein the first webpage is a webpage of the target website which is opened in the webpage opening event;
the determining unit is used for determining second webpages corresponding to the account information in the first browser, and acquiring webpage data of each second webpage in the first browser, wherein the second webpage is the webpage of the target website which is opened in the first browser before the webpage opening event, and the webpage data are second data;
and the closing unit is used for closing a second webpage corresponding to second data different from the first data if the second data different from the first data exists.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the method for managing multiple web windows according to any one of the first aspect when the processor executes the computer program.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements a method for managing multiple web windows according to any one of the first aspect above.
In a fifth aspect, an embodiment of the present application provides a computer program product, which when run on a terminal device, causes the terminal device to execute the method for managing multiple web windows according to any one of the first aspects.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Compared with the prior art, the embodiment of the application has the beneficial effects that:
according to the embodiment of the application, when the webpage opening event of the target website in the first browser is monitored, account information of the target website corresponding to a first webpage is obtained, and webpage data of the first webpage in the first browser is generated to be first data, wherein the first webpage is the webpage of the target website opened in the webpage opening event, namely, each time a new webpage is opened, corresponding webpage data is generated for the newly opened webpage; then determining second webpages corresponding to the account information in the first browser, and acquiring webpage data of each second webpage in the first browser as second data, wherein the second webpages are webpages of the target websites which are opened in the first browser before the webpage opening event; if second data different from the first data exist, closing a second webpage corresponding to the second data different from the first data; each webpage has corresponding webpage data, if the first data and the second data are different, the second webpage corresponding to the second data is not the same webpage as the first webpage, and the account information corresponding to the second webpage and the first webpage is the same, and the fact that the same account corresponds to a plurality of opened webpages is indicated, at the moment, the newly opened first webpage is reserved, and the previously opened second webpage is closed, so that only one session is enabled at the same time for the same account. By the method, the invalid webpage can be automatically closed when a plurality of webpage windows are correspondingly opened by the same account, so that the conversation of only one webpage window of the same account is ensured to be effective, and meanwhile, the working efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a multi-web-page window management system according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for managing multiple web windows according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for managing multiple web windows according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for managing multiple web windows according to another embodiment of the present application;
FIG. 5 is a block diagram of a managing device for multiple web windows according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
As used in the present specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context.
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise.
An application scenario of the embodiment of the present application is described first. Referring to fig. 1, a schematic diagram of a management system for multiple web windows according to an embodiment of the present application is provided. As shown in fig. 1, the multi-web window management system may include a back-end server 101 and at least one front-end processor 102. The front-end processor serves the browser of the front end and can be terminal equipment with data processing functions such as a computer and a mobile phone. The backend server serves the management system, may be a cloud server, or the like. The back-end servers are respectively in communication connection with the front-end processors. Any front-end processor can manage the multi-webpage window in the browser of the service by using the multi-webpage window management method in the embodiment of the application.
Illustratively, for either front-end processor I, it is assumed that it serves two browsers (a first browser and a second browser). When a webpage opening event of a target website in a first browser is monitored, acquiring account information of the target website corresponding to a first webpage (the first webpage is a webpage of the target website opened in the webpage opening event), generating webpage data of the first webpage in the first browser, and reporting the first data and the account information to a rear-end server, wherein the reporting of the first data and the account information to the rear-end server is equivalent to reporting a request for a kicking user to log off; and after receiving the first data and the account information reported by the front-end processor, the back-end server sends the first data and the account information to each front-end processor (such as front-end processors I and II) which are in communication connection with the back-end server in a broadcast mode.
For the front-end processor I, when receiving the first data and the account information sent by the back-end server, determining second webpages corresponding to the account information in the first browser (the second webpages are webpages of the target websites opened in the first browser before a webpage opening event), acquiring webpage data of each second webpage in the first browser, wherein the webpage data are second data, and if second data different from the first data exist, closing the second webpages corresponding to the second data different from the first data; when the first data and account information sent by the back-end server are received, the front-end processor I also needs to determine a fifth webpage corresponding to the account information in the second browser of the back-end server (the fifth webpage is a webpage of the target website opened in the second browser before the webpage opening event), acquire webpage data of each fifth webpage in the second browser, and if the fifth data different from the first data exists, close the fifth webpage corresponding to the fifth data different from the first data.
For the front-end processor II, when the first data and the account information sent by the back-end server are received, the management method of the multi-webpage window in the application can also be used for managing the webpage window in the browser served by the front-end processor II. For example, a sixth webpage corresponding to account information in a third browser served by the server is determined (the sixth webpage is a webpage of the target website opened in the third browser before the webpage opening event), webpage data of each third webpage in the third browser is obtained, the webpage data are sixth data, and if sixth data different from the first data exist, the sixth webpage corresponding to the sixth data different from the first data is closed.
By the method, the multi-webpage windows corresponding to the same account information in one browser can be managed, the multi-webpage windows corresponding to the same account information in different browsers can be managed, and the fact that the same account information is effective only in one session window is effectively ensured.
Fig. 2 is a flow chart of a method for managing multiple web windows according to an embodiment of the present application, where the method includes, by way of example and not limitation, the following steps for a case that the same account information corresponds to multiple web windows in one browser:
s201, when a webpage opening event of a target website in a first browser is monitored, acquiring account information of the target website corresponding to a first webpage, and generating webpage data of the first webpage in the first browser as first data.
The first webpage is a webpage of a target website opened in the webpage opening event.
In practical applications, the target website may be a preset website of a management system, such as a website of a vehicle management system. Whenever a new web page of the target web site is opened, corresponding web page data needs to be generated for the new web page. The web page data is associated with the browser, in other words, the same web page opened in different browsers, the corresponding web page data being different. For example, assume that a web page a of a target website is opened in a first browser and a second browser, the generated web page data of a in the first browser is A1, the generated web page data of a in the second browser is A2, and A1 is different from A2.
In addition, each time a new web page of the target web site is opened, the new web page corresponds to account information. For example, when a login web page is opened, the login web page corresponds to account information B; after logging in, when another new webpage is opened, because the new webpage is opened after the account number B is logged in, the account signal corresponding to the new webpage is still B; if another account number is used for logging in, a new login webpage is opened, and account information corresponding to the new login webpage becomes C. In any case, every time a new webpage is opened, account information corresponding to the new webpage can be obtained.
The first browser is only used for expressing the browser with the webpage opening event, and is not used for representing the sequence, importance and the like.
In one embodiment, generating web page data for a first web page in a first browser includes:
s21, if the cache data of the target website in the current first browser is empty, generating a random number, and taking the random number as the webpage data of the webpage in the first browser.
The random number may be a time stamp, sequence number, etc. of the data.
S22, if the cache data of the target website in the current first browser is not empty, taking the cache data of the target website in the current first browser as the webpage data of the webpage in the first browser.
S202, determining second webpages corresponding to the account information in the first browser, and acquiring webpage data of each second webpage in the first browser as second data.
The second webpage is the webpage of the target website which is opened in the first browser before the webpage opening event.
Illustratively, assume that web pages a and B of the target web site have been opened in the first browser prior to the web page opening event. According to the description in step S201, each time a web page is opened, corresponding web page data is generated for the newly opened web page. Then, when the webpage A is opened in the first browser, generating webpage data of the webpage A in the first browser; and when the webpage B is opened in the first browser, generating webpage data of the webpage B in the first browser.
The account information in the first browser may correspond to a plurality of second web pages, where the second web pages are only used to distinguish from the first web pages, and are not used to count or characterize the sequence, importance, etc.
And S203, if second data different from the first data exists, closing a second webpage corresponding to the second data different from the first data.
And if the second data is different from the first data, the second webpage corresponding to the second data is not the same webpage as the first webpage. However, because the account information of the second webpage is the same as that of the first webpage, it is indicated that a plurality of webpage windows are opened corresponding to the same account information in the first browser, and at this time, the second webpage is closed, that is, the previously opened webpage is closed, and the newly opened webpage is reserved, so that the conversation of the newly opened webpage is ensured to be effective.
In one embodiment, referring to fig. 3, a flowchart of a method for managing multiple web windows according to another embodiment of the present application is shown in fig. 3, and after generating the web data corresponding to the first web in the first browser, the method further includes:
s204, clearing the cache data of the target website in the current first browser.
The cache data may be stored on the front-end processor or on a storage medium corresponding to the front-end processor. The cached data is used to hold the appropriate amount of data for a particular client and website and may be accessed by a website server or client browser. Thus, the cached data is associated with the browser and the website, respectively. Namely, the cache data of the target website in the first browser is used for storing proper data of the target website in the first browser.
After the cache data is cleared, the cache data of the target website in the first browser is empty, a new webpage is opened, and the webpage data corresponding to the new webpage is a random number.
By the method, the webpage data corresponding to the new webpage opened each time can be ensured to be a random number, and further, the webpage data corresponding to different webpages are ensured to be different.
In one embodiment, after the clearing the cached data of the target website in the current first browser, the method further includes:
s205, when a page refreshing signal of any one third webpage in the first browser is monitored, acquiring webpage data of the third webpage corresponding to the page refreshing signal in the first browser.
The third webpage is a webpage of the target website which is opened in the first browser when the webpage refreshing signal is monitored.
S206, setting the cache data of the target website in the current first browser as the webpage data of the third webpage corresponding to the webpage refreshing signal in the first browser, and refreshing the third webpage corresponding to the webpage refreshing signal.
Since the refresh operation does not open a new and different page, the page after refresh is also the previous page, and therefore the page data corresponding to the page should remain unchanged. But for a processor a refresh operation can be seen as a process of closing a page and quickly reopening the page in a short time. In order to ensure that the webpage data of the refreshed page is still the original data after the refreshing operation, the webpage data of the page to be refreshed needs to be stored as the cache data of the target website in the first browser before refreshing, namely the webpage data is stored through the cache data.
In one embodiment, after refreshing the third web page corresponding to the page refresh signal, the method further includes:
s207, generating webpage data of the refreshed third webpage in the first browser, wherein the webpage data is third data.
The refresh operation corresponds to re-opening the third web page, and similar to step S201, corresponding web page data needs to be generated for the newly opened third web page. The specific method is the same as the process of generating the web page data of the first web page in the first browser in step S201. Since the cache data of the target website in the first browser is not empty (the web page data of the third web page is set in step S206), the generated web page data of the third web page in the first browser is the cache data, that is, the web page data before refreshing.
S208, determining fourth webpages corresponding to the account information in the first browser, and acquiring webpage data of each fourth webpage in the first browser, wherein the webpage data are fourth data.
The fourth web page is a web page of the target website which is opened in the first browser before the third web page corresponding to the page refreshing signal is refreshed.
And S209, if fourth data different from the third data exists, closing a fourth webpage corresponding to the fourth data different from the third data.
Steps S208 to S209 are identical to steps S202 to S203, and the details of these steps S202 to S203 will be described in detail herein.
According to the embodiment of the application, when the webpage opening event of the target website in the first browser is monitored, account information of the target website corresponding to a first webpage is obtained, and webpage data of the first webpage in the first browser is generated to be first data, wherein the first webpage is the webpage of the target website opened in the webpage opening event, namely, each time a new webpage is opened, corresponding webpage data is generated for the newly opened webpage; then determining second webpages corresponding to the account information in the first browser, and acquiring webpage data of each second webpage in the first browser as second data, wherein the second webpages are webpages of the target websites which are opened in the first browser before the webpage opening event; if second data different from the first data exist, closing a second webpage corresponding to the second data different from the first data; each webpage has corresponding webpage data, if the first data and the second data are different, the second webpage corresponding to the second data is not the same webpage as the first webpage, and the account information corresponding to the second webpage and the first webpage is the same, and the fact that the same account corresponds to a plurality of opened webpages is indicated, at the moment, the newly opened first webpage is reserved, and the previously opened second webpage is closed, so that only one session is enabled at the same time for the same account. By the method, the invalid webpage can be automatically closed when a plurality of webpage windows are correspondingly opened by the same account, so that the conversation of only one webpage window of the same account is ensured to be effective, and the working efficiency is improved at the same time
Fig. 4 is a flow chart of a method for managing multiple web windows according to another embodiment of the present application, where the method includes, by way of example and not limitation, the following steps for a case that the same account information corresponds to multiple web windows in different browsers:
s401, when a webpage opening event of a target website in a first browser is monitored, acquiring account information of the target website corresponding to a first webpage, and generating webpage data of the first webpage in the first browser as first data.
The first webpage is a webpage of a target website opened in the webpage opening event.
Step S401 is the same as step S201, and the details of step S201 will be described in detail herein.
S402, determining fifth webpages corresponding to the account information in the second browser, and acquiring webpage data of each fifth webpage in the second browser as fifth data.
The fifth webpage is the webpage of the target website which is opened in the second browser before the webpage opening event.
The second browser is used only to characterize a different browser than the first browser and is not used to count or characterize the order, importance, etc.
In practical applications, the first browser and the second browser may be communicatively connected to the same front-end processor, i.e. served by the same front-end processor.
Illustratively, the IE browser and the 360 browser are opened simultaneously on the same computer, and the web page of the target website is opened in both browsers. At this time, session data of a plurality of web page windows of the target web site may also collide with each other.
And S403, if fifth data different from the first data exists, closing a fifth webpage corresponding to the fifth data different from the first data.
And if the fifth data is different from the first data, the fifth webpage corresponding to the fifth data is not the same webpage as the first webpage. However, because the account information of the fifth webpage corresponding to the first webpage is the same, it is indicated that a plurality of webpage windows are opened corresponding to the same account information in the first browser and the second browser, and at this time, the fifth webpage is closed, that is, the previously opened webpage is closed, and the newly opened webpage is reserved, so that the conversation of the newly opened webpage is ensured to be effective.
After step S403, the method in steps S204-S209 may also be included. Of course, when the page refresh signal of any one page in the second browser is detected, similar to steps S205 to S209, the description thereof will not be repeated here.
According to the embodiment of the application, when the webpage opening event of the target website in the first browser is monitored, account information of the target website corresponding to the first webpage is obtained, and webpage data of the first webpage in the first browser is generated and is first data; then determining fifth webpages corresponding to the account information in the second browser, and acquiring webpage data of each fifth webpage in the second browser as fifth data; if fifth data different from the first data exists, closing a fifth webpage corresponding to the fifth data different from the first data. By the method, when the webpage windows of the same account information are opened in a plurality of different browsers, the webpage which is logged in before is closed, the newly opened webpage is reserved, and therefore the fact that the same account information is valid only in one session is guaranteed.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Corresponding to the method described in the above embodiments, fig. 5 shows a block diagram of a management apparatus for multiple web windows according to an embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
Referring to fig. 5, the apparatus 5 includes:
the generating unit 51 is configured to, when a web page opening event of a target web site in a first browser is detected, obtain account information of the target web site corresponding to a first web page, and generate web page data of the first web page in the first browser as first data, where the first web page is a web page of the target web site opened in the web page opening event.
The determining unit 52 is configured to determine second web pages corresponding to the account information in the first browser, and obtain web page data of each second web page in the first browser, where the second web page is a web page of the target website that has been opened in the first browser before the web page opening event, as second data.
And a closing unit 53, configured to close a second web page corresponding to second data different from the first data if there is second data different from the first data.
Optionally, the apparatus 5 further comprises:
and the clearing unit 54 is configured to clear the cache data of the target website in the current first browser after generating the web page data corresponding to the first web page in the first browser.
Optionally, the apparatus 5 further comprises:
and the monitoring unit 55 is configured to, after the cache data of the target website in the current first browser is cleared, obtain, when a page refresh signal of any one third webpage in the first browser is monitored, webpage data of the third webpage corresponding to the page refresh signal in the first browser, where the third webpage is a page of the target website that has been opened in the first browser when the page refresh signal is monitored.
And a refreshing unit 56, configured to set the cache data of the target website in the current first browser as the web page data of the third web page corresponding to the page refresh signal in the first browser, and refresh the third web page corresponding to the page refresh signal.
Optionally, the apparatus 5 further comprises:
the generating unit 51 is further configured to generate, after refreshing the third web page corresponding to the page refresh signal, web page data of the refreshed third web page in the first browser, where the web page data is third data.
The determining unit 52 is further configured to determine fourth web pages corresponding to the account information in the first browser, and obtain web page data of each fourth web page in the first browser, where the fourth web page is a web page of the target website that has been opened in the first browser before refreshing the third web page corresponding to the page refresh signal.
The closing unit 53 is further configured to close a fourth web page corresponding to fourth data different from the third data if fourth data different from the third data exists.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
In addition, the device shown in fig. 5 may be a software unit, a hardware unit, or a unit combining soft and hard, which are built in an existing terminal device, or may be integrated into the terminal device as an independent pendant, or may exist as an independent terminal device.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 6, the terminal device 6 of this embodiment includes: at least one processor 60 (only one shown in fig. 6), a memory 61 and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, the processor 60 implementing the steps in any of the various multi-web-page window management method embodiments described above when executing the computer program 62.
The terminal equipment can be computing equipment such as a desktop computer, a notebook computer, a palm computer, a cloud server and the like. The terminal device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that fig. 6 is merely an example of the terminal device 6 and is not meant to be limiting as to the terminal device 6, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 60 may be a central processing unit (Central Processing Unit, CPU), the processor 60 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may in some embodiments be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6. The memory 61 may in other embodiments also be an external storage device of the terminal device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the terminal device 6. The memory 61 is used for storing an operating system, application programs, boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory 61 may also be used for temporarily storing data that has been output or is to be output.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps for implementing the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform steps that enable the implementation of the method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to an apparatus/terminal device, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (7)

1. A method for managing multiple web windows, comprising:
when a webpage opening event of a target website in a first browser is monitored, acquiring account information of the target website corresponding to a first webpage, and generating webpage data of the first webpage in the first browser as first data, wherein the first webpage is a webpage of the target website opened in the webpage opening event;
Determining second webpages corresponding to the account information in the first browser, and acquiring webpage data of each second webpage in the first browser, wherein the second webpage is a webpage of the target website which is opened in the first browser before the webpage opening event, and the webpage data are second data;
if second data different from the first data exist, closing a second webpage corresponding to the second data different from the first data;
after generating the web page data corresponding to the first web page in the first browser, the method further includes:
clearing the cache data of the target website in the current first browser;
after the cache data is cleared, the cache data of the target website in the first browser is empty, and when a new webpage is opened, the webpage data corresponding to the new webpage is a random number;
after the cache data of the target website in the current first browser is cleared, the method further comprises:
when a page refreshing signal of any one third webpage in the first browser is monitored, acquiring webpage data of the third webpage corresponding to the page refreshing signal in the first browser, wherein the third webpage is a page of the target website which is opened in the first browser when the page refreshing signal is monitored;
Setting the cache data of the target website in the current first browser as the webpage data of a third webpage corresponding to the webpage refreshing signal in the first browser, and refreshing the third webpage corresponding to the webpage refreshing signal;
after generating the web page data corresponding to the first web page in the first browser, the method further includes:
determining fifth webpages corresponding to the account information in a second browser, and acquiring webpage data of each fifth webpage in the second browser, wherein the fifth webpage is a webpage of the target website which is opened in the second browser before the webpage opening event;
and if fifth data different from the first data exists, closing a fifth webpage corresponding to the fifth data different from the first data.
2. The method for managing a plurality of web pages according to claim 1, wherein after refreshing the third web page corresponding to the page refresh signal, the method further comprises:
generating webpage data of the refreshed third webpage in the first browser, wherein the webpage data is third data;
determining fourth webpages corresponding to the account information in the first browser, and acquiring webpage data of each fourth webpage in the first browser as fourth data, wherein the fourth webpages are webpages of the target websites which are opened in the first browser before refreshing third webpages corresponding to the page refreshing signals;
And if fourth data different from the third data exists, closing a fourth webpage corresponding to the fourth data different from the third data.
3. The method for managing multiple web pages windows according to claim 2, wherein for any one of the first web page and the refreshed third web page, generating web page data of the web page in the first browser comprises:
and if the cache data of the target website in the current first browser is empty, generating a random number, and taking the random number as the webpage data of the webpage in the first browser.
4. The method for managing multiple web pages windows according to claim 2, wherein for any one of the first web page and the refreshed third web page, generating web page data of the web page in the first browser comprises:
and if the cache data of the target website in the current first browser is not empty, taking the cache data of the target website in the current first browser as the webpage data of the webpage in the first browser.
5. A multi-web-page window management apparatus, comprising:
The generation unit is used for acquiring account information of a target website corresponding to a first webpage when a webpage opening event of the target website in a first browser is monitored, and generating webpage data of the first webpage in the first browser as first data, wherein the first webpage is a webpage of the target website which is opened in the webpage opening event;
the determining unit is used for determining second webpages corresponding to the account information in the first browser, and acquiring webpage data of each second webpage in the first browser, wherein the second webpage is the webpage of the target website which is opened in the first browser before the webpage opening event, and the webpage data are second data;
a closing unit, configured to close a second web page corresponding to second data different from the first data if there is the second data different from the first data;
after the generating unit, further comprising:
clearing the cache data of the target website in the current first browser;
after the cache data is cleared, the cache data of the target website in the first browser is empty, and when a new webpage is opened, the webpage data corresponding to the new webpage is a random number;
When a page refreshing signal of any one third webpage in the first browser is monitored, acquiring webpage data of the third webpage corresponding to the page refreshing signal in the first browser, wherein the third webpage is a page of the target website which is opened in the first browser when the page refreshing signal is monitored;
setting the cache data of the target website in the current first browser as the webpage data of a third webpage corresponding to the webpage refreshing signal in the first browser, and refreshing the third webpage corresponding to the webpage refreshing signal;
determining fifth webpages corresponding to the account information in a second browser, and acquiring webpage data of each fifth webpage in the second browser, wherein the fifth webpage is a webpage of the target website which is opened in the second browser before the webpage opening event;
and if fifth data different from the first data exists, closing a fifth webpage corresponding to the fifth data different from the first data.
6. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 4 when executing the computer program.
7. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 4.
CN201911360035.5A 2019-12-25 2019-12-25 Multi-webpage window management method, management device and terminal equipment Active CN111199003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911360035.5A CN111199003B (en) 2019-12-25 2019-12-25 Multi-webpage window management method, management device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911360035.5A CN111199003B (en) 2019-12-25 2019-12-25 Multi-webpage window management method, management device and terminal equipment

Publications (2)

Publication Number Publication Date
CN111199003A CN111199003A (en) 2020-05-26
CN111199003B true CN111199003B (en) 2023-11-10

Family

ID=70744434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911360035.5A Active CN111199003B (en) 2019-12-25 2019-12-25 Multi-webpage window management method, management device and terminal equipment

Country Status (1)

Country Link
CN (1) CN111199003B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806650A (en) * 2021-09-16 2021-12-17 网易(杭州)网络有限公司 Webpage application processing method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013117157A1 (en) * 2012-02-10 2013-08-15 北京奇虎科技有限公司 Multi-account login method and apparatus
CN103577229A (en) * 2013-10-28 2014-02-12 北京奇虎科技有限公司 Loading method of web games and web browser
CN105162805A (en) * 2015-09-30 2015-12-16 北京奇虎科技有限公司 User account login method and apparatus
CN106354791A (en) * 2016-08-24 2017-01-25 乐视控股(北京)有限公司 Browser webpage window processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425647B (en) * 2012-05-15 2016-05-11 腾讯科技(深圳)有限公司 A kind of seamless browsing method of webpage and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013117157A1 (en) * 2012-02-10 2013-08-15 北京奇虎科技有限公司 Multi-account login method and apparatus
CN103577229A (en) * 2013-10-28 2014-02-12 北京奇虎科技有限公司 Loading method of web games and web browser
CN105162805A (en) * 2015-09-30 2015-12-16 北京奇虎科技有限公司 User account login method and apparatus
CN106354791A (en) * 2016-08-24 2017-01-25 乐视控股(北京)有限公司 Browser webpage window processing method and device

Also Published As

Publication number Publication date
CN111199003A (en) 2020-05-26

Similar Documents

Publication Publication Date Title
AU2014235793B2 (en) Automatic tuning of virtual data center resource utilization policies
CN108173938B (en) Server load distribution method and device
CN107480277B (en) Method and device for collecting website logs
CN110019087B (en) Data processing method and system
CN108052824B (en) Risk prevention and control method and device and electronic equipment
CN111290696A (en) Flow control method and device for application program assembly
CN110708212A (en) Method and device for tracking call link in distributed system
CN113765980A (en) Current limiting method, device, system, server and storage medium
CN112104663B (en) Method and equipment for managing login user and user equipment
CN111199003B (en) Multi-webpage window management method, management device and terminal equipment
CN114301692B (en) Attack prediction method, device, medium and equipment
CN113966590B (en) Site session termination method, device, terminal equipment and medium
CN108734033B (en) Method and device for realizing safety interaction between systems
CN111756744B (en) H5 user identification method, device, equipment and storage medium
CN114726608A (en) Honeypot drainage method, honeypot drainage device and honeypot drainage medium
CN111198900A (en) Data caching method and device for industrial control network, terminal equipment and medium
CN113329035A (en) Method and device for detecting attack domain name, electronic equipment and storage medium
CN111950770A (en) Method and device for managing resource return auxiliary strategy and electronic equipment
CN109614255B (en) Transaction request processing method, device, medium and electronic equipment
US11093300B1 (en) Method, electronic device and computer program product for processing information
US8613094B1 (en) Using a honeypot workflow for software review
CN114237509B (en) Data access method and device
CN116070268B (en) Privacy data identification monitoring method, device and equipment
US11431349B2 (en) Method, electronic device and computer program product for processing data
CN111382321B (en) Method and equipment for requesting cache materials

Legal Events

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