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

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

Info

Publication number
CN111199003A
CN111199003A CN201911360035.5A CN201911360035A CN111199003A CN 111199003 A CN111199003 A CN 111199003A CN 201911360035 A CN201911360035 A CN 201911360035A CN 111199003 A CN111199003 A CN 111199003A
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.)
Granted
Application number
CN201911360035.5A
Other languages
Chinese (zh)
Other versions
CN111199003B (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

Images

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

Abstract

The application is applicable to the technical field of computers, and provides a management method, a management device and terminal equipment for multiple webpage windows, wherein the management method, the management device and the terminal equipment comprise 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, wherein the webpage data is 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 the same account correspondingly opens a plurality of webpage windows, and the working efficiency is improved.

Description

Multi-webpage window management method and device and terminal equipment
Technical Field
The present application belongs to the field of computer technologies, and in particular, to a method and an apparatus for managing multiple web windows, and a terminal device.
Background
With the development of internet technology, many internet management systems, such as a yard management system, have come into play. In the system, the vehicles can be monitored through the browser, the entering and exiting of the vehicles can be managed, and the like, so that the efficiency of the parking lot management is greatly improved.
In practical applications, usually a plurality of yard managers share an account of one yard management system, and it is easy for a situation that one account opens a plurality of web windows correspondingly. When management is carried out, only one webpage window can be operated, and for other webpage windows, window data need to be manually cleared, so that the steps are complex, the labor and the effort are wasted, and further the working efficiency is reduced.
Disclosure of Invention
The embodiment of the application provides a management method and a management device for a multi-webpage window and a terminal device, and can solve the problems of complex steps and low efficiency when data of the multi-webpage window is cleared.
In a first aspect, an embodiment of the present application provides a method for managing multiple web pages, 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, wherein the webpage data is first data, and 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 webpage data are second data, and the second webpages are webpages of the target websites opened in the first browser before the webpage opening event;
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 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 cached data of the target website in the current first browser, the method further includes:
when a page refreshing signal of any third webpage in the first browser is monitored, acquiring webpage data of the third webpage in the first browser, which corresponds to the page refreshing signal, 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 the third webpage corresponding to the page refreshing signal in the first browser, and refreshing the third webpage corresponding to the page refreshing signal.
In a possible implementation manner of the first aspect, after the third webpage corresponding to the page refresh signal is refreshed, the method further includes:
generating webpage data of the refreshed third webpage in the first browser, wherein the webpage data are 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, wherein the fourth webpages are webpages of the target websites opened in the first browser before refreshing the 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, generating, for any one of the first web page and the refreshed third web page, 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 using the random number as the webpage data of the webpage in the first browser.
In a possible implementation manner of the first aspect, generating, for any one of the first web page and the refreshed third web page, 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 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 webpages are webpages of the target websites 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 pages, 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 opened in the webpage opening event;
a determining unit, configured to determine second webpages corresponding to the account information in the first browser, and acquire webpage data of each second webpage in the first browser, where the second webpage is a webpage of the target website that has been opened in the first browser before the webpage opening event;
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 executable on the processor, where the processor, when executing the computer program, implements the method for managing a multi-web window according to any one of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, and the 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 the method for managing multiple web pages windows according to any one of the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the method for managing a multi-web window according to any one of the above first aspects.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Compared with the prior art, the embodiment of the application has the advantages that:
according to the method and the device, when a webpage opening event of a target website in a first browser is monitored, account information of the target website corresponding to a first webpage is obtained, webpage data of the first webpage in the first browser are generated and are first data, wherein the first webpage is the webpage of the target website opened in the webpage opening event, namely when a new webpage is opened, corresponding webpage data are 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, wherein the webpage data are second data, and the second webpages are webpages of the target websites opened in the first browser before the webpage opening event; if second data different from the first data exists, closing a second webpage corresponding to the second data different from the first data; each webpage has corresponding webpage data, if the first data is different from the second data, the second webpage corresponding to the second data is not the same as the first webpage, account information corresponding to the second webpage and the first webpage is the same, the same account number correspondingly opens a plurality of webpages, the newly opened first webpage is reserved, and the previously opened second webpage is closed, so that the condition that the same account number only has one session valid at the same time is ensured. By the method, the invalid webpage can be automatically closed when the same account correspondingly opens a plurality of webpage windows, and the working efficiency is improved while the session of only one webpage window of the same account is ensured to be valid.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a diagram illustrating a system for managing multiple web pages of a window according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating a method for managing a multi-page window according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating a method for managing multiple web pages according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for managing multiple web pages according to another embodiment of the present application;
fig. 5 is a block diagram illustrating a structure of a device for managing multiple web pages according to an embodiment of the present disclosure;
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 particular system structures, 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 will 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 this specification and the appended claims, the term "if" may be interpreted contextually as "when.. or" upon "or" in response to a determination "or" in response to a detection ".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this 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 present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated 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 a multi-web page window provided in the embodiment of the present application is shown. As shown in fig. 1, the management system of a multi-web window may include a back-end server 101 and at least one front-end processor 102. The front-end processor serves a front-end browser and can be a computer, a mobile phone and other terminal equipment with a data processing function. The back-end server serves the management system and can be a cloud server and the like. The back-end server is respectively in communication connection with each front-end processor. Any front-end processor can utilize the management method of the multi-webpage window in the embodiment of the application to manage the multi-webpage window in the browser of the service.
Illustratively, for any 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, wherein the webpage data is first data, and reporting the first data and the account information to a back-end server, which is equivalent to reporting a request for kicking off a user offline to the back-end server; 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 the front-end processors I and II) in communication connection with the back-end server in a broadcast mode.
For the front-end processor I, when first data and account information sent by a back-end server are received, determining a second webpage corresponding to the account information in a first browser (the second webpage is a webpage of a target website 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 webpage corresponding to the second data different from the first data; when first data and account information sent by a back-end server are received, the front-end processor I needs to determine a fifth webpage corresponding to the account information in a second browser of the server (the fifth webpage is a webpage of a target website opened in the second browser before a webpage opening event), acquire webpage data of each fifth webpage in the second browser, and close the fifth webpage corresponding to fifth data different from the first data if the fifth data different from the first data exists.
For the front-end processor II, when receiving the first data and the account information sent by the back-end server, the method for managing multiple web windows in the application may also be used to manage the web windows in the browser served by the front-end processor II. For example, a sixth webpage corresponding to the account information in a third browser served by the third browser 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 and is sixth data, and if sixth data different from the first data exists, the sixth webpage corresponding to the sixth data different from the first data is closed.
By the method, not only can multiple webpage windows corresponding to the same account information in one browser be managed, but also multiple webpage windows corresponding to the same account information in different browsers can be managed, and the fact that only one session window is valid for the same account information is effectively guaranteed.
Fig. 2 is a flowchart illustrating a method for managing multiple web pages, according to an embodiment of the present application, where for a case that the same account information corresponds to multiple web pages in one browser, the method may include, by way of example and not limitation, the following steps:
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 the first webpage, and generating webpage data of the first webpage in the first browser, wherein the webpage data are first data.
And 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. Each time a new web page of the target website 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 is opened in different browsers, and the corresponding web page data is different. For example, suppose that the web page a of the target website is opened in the first browser and the second browser respectively, 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 a 2.
In addition, each time a new web page of the target website is opened, the new web page corresponds to account information. For example, when a login webpage is opened, the login webpage corresponds to account information B; after logging in, when another new web page is opened, because the new web page is opened after the account B is logged in, the account signal corresponding to the new web page is still B; if the user logs in with another account, a new login webpage is opened, and account information corresponding to the new login webpage becomes C. In any case, every time a new web page is opened, account information corresponding to the new web page may be acquired.
The first browser is only used for expressing the browser with the webpage opening event, and is not used for representing the sequence, the importance and the like.
In one embodiment, generating web page data for a first web page in a first browser comprises:
and S21, if the cache data of the target website in the current first browser is empty, generating a random number, and using the random number as the webpage data of the webpage in the first browser.
The random number may be a time stamp, sequence number, or the like.
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 a webpage of the target website 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 open 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, webpage data of the webpage A in the first browser are generated; 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 for distinguishing from the first web pages, and are not used for counting or representing the order, importance, and the like.
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, the account information of the second webpage is the same as that of the first webpage, which indicates 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 retained, so that the session of the newly opened webpage is guaranteed to be effective.
In an embodiment, referring to fig. 3, a flowchart of a method for managing a multi-web page window according to another embodiment of the present application is shown in fig. 3, where after generating web page data corresponding to the first web page in the first browser, the method further includes:
and S204, clearing the cache data of the target website in the current first browser.
The cache data can be stored on the front-end processor, and can also be stored on a storage medium corresponding to the front-end processor. The cached data is used to store 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 website, respectively. Namely, the cache data of the target website in the first browser is used for storing a proper amount of 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 web page is opened at the moment, and the web page data corresponding to the new web page is a random number.
By the method, the webpage data corresponding to the new webpage opened each time can be guaranteed to be a random number, and therefore the webpage data corresponding to different webpages are guaranteed to be different.
In one embodiment, after the clearing the cached data of the target website in the current first browser, the method further comprises:
s205, when the page refreshing signal of any 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.
And the third webpage is a page of the target website opened in the first browser when the page 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 page refreshing signal in the first browser, and refreshing the third webpage corresponding to the page refreshing signal.
Since the refresh operation does not open a new different page, the refreshed page is the previous page, and therefore the web page data corresponding to the page should remain unchanged. But for a processor, a refresh operation can be viewed 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 cache data of a target website in the first browser before the refreshing operation, that is, the webpage data is stored through the cache data.
In one embodiment, after refreshing the third webpage corresponding to the page refresh signal, the method further includes:
and S207, generating webpage data of the refreshed third webpage in the first browser, wherein the webpage data is the third data.
The refresh operation is equivalent 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. At this time, since the cache data of the target website in the first browser is not empty (the webpage data of the third webpage is set in step S206), the generated webpage data of the third webpage in the first browser is cache data, that is, the webpage data before being refreshed.
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 as fourth data.
The fourth webpage is a webpage of the target website which is opened in the first browser before the third webpage corresponding to the page refreshing signal is refreshed.
S209, if there is fourth data different from the third data, closing a fourth web page corresponding to the fourth data different from the third data.
Steps S208 to S209 are the same as steps S202 to S203, and the details can be referred to the descriptions in steps S202 to S203, which are not described herein again.
According to the method and the device, when a webpage opening event of a target website in a first browser is monitored, account information of the target website corresponding to a first webpage is obtained, webpage data of the first webpage in the first browser are generated and are first data, wherein the first webpage is the webpage of the target website opened in the webpage opening event, namely when a new webpage is opened, corresponding webpage data are 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, wherein the webpage data are second data, and the second webpages are webpages of the target websites opened in the first browser before the webpage opening event; if second data different from the first data exists, closing a second webpage corresponding to the second data different from the first data; each webpage has corresponding webpage data, if the first data is different from the second data, the second webpage corresponding to the second data is not the same as the first webpage, account information corresponding to the second webpage and the first webpage is the same, the same account number correspondingly opens a plurality of webpages, the newly opened first webpage is reserved, and the previously opened second webpage is closed, so that the condition that the same account number only has one session valid at the same time is ensured. By the method, the invalid webpage can be automatically closed when the same account correspondingly opens a plurality of webpage windows, the session of only one webpage window of the same account is ensured to be valid, and the working efficiency is improved
Fig. 4 is a flowchart illustrating a method for managing multiple web pages windows according to another embodiment of the present application, where for example and without limitation, the method may include the following steps:
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 the first webpage, and generating webpage data of the first webpage in the first browser, wherein the webpage data are first data.
And 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 details can be referred to the description in step S201, which is not repeated 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, wherein the webpage data are fifth data.
Wherein the fifth webpage is a webpage of the target website opened in the second browser before the webpage opening event.
The second browser is only used 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, i.e., served by, the same front-end processor.
Illustratively, both the IE browser and the 360 browser are open on the same computer, and the web page of the target web site is open in both browsers. At this time, the session data of the multiple web windows of the target website may also conflict 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.
If the fifth data is different from the first data, it indicates that the fifth webpage corresponding to the fifth data is not the same webpage as the first webpage. However, the account information of the fifth webpage is the same as that of the first webpage, which indicates that a plurality of webpage windows are opened in the first browser and the second browser corresponding to the same account information, and at this time, the fifth webpage is closed, that is, the previously opened webpage is closed, and the newly opened webpage is retained, so that the session of the newly opened webpage is guaranteed 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 page in the second browser is monitored, similar to steps S205 to S209, which is not described herein again.
According to the method and the device, when a webpage opening event of a target website in a first browser is monitored, account information of the target website corresponding to the first webpage is acquired, and webpage data of the first webpage in the first browser are generated and are first data; determining fifth webpages corresponding to the account information in the second browser, and acquiring webpage data of each fifth webpage in the second browser, wherein the webpage data are fifth data; and 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 window of the same account information is opened in a plurality of different browsers, the previously logged-in webpage is closed, and the newly opened webpage is reserved, so that the condition that only one session of the same account information is valid is ensured.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 5 shows a block diagram of a management apparatus for a multi-web window according to an embodiment of the present application, which corresponds to the method described in the foregoing embodiment, and only shows portions related to the embodiment of the present application for convenience of description.
Referring to fig. 5, the apparatus 5 includes:
the generating unit 51 is configured to, when a webpage opening event of a target website in a first browser is monitored, acquire account information of the target website corresponding to a first webpage, and generate webpage data of the first webpage in the first browser as first data, where the first webpage is a webpage of the target website opened in the webpage opening event.
A determining unit 52, configured to determine second webpages corresponding to the account information in the first browser, and acquire webpage data of each second webpage in the first browser, where the second webpage is a webpage of the target website that has been opened in the first browser before the webpage opening event.
A closing unit 53, configured to close a second webpage corresponding to second data different from the first data if the second data different from the first data exists.
Optionally, the apparatus 5 further comprises:
a clearing unit 54, configured to clear cache data of the target website in the current first browser after generating webpage data corresponding to the first webpage in the first browser.
Optionally, the apparatus 5 further comprises:
after the cache data of the target website in the current first browser is cleared, when a page refresh signal of any one third webpage in the first browser is monitored, a monitoring unit 55 is configured to acquire webpage data of the third webpage in the first browser corresponding to the page refresh signal, 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.
A refreshing unit 56, configured to set the cache data of the target website in the current first browser to be the webpage data of the third webpage in the first browser corresponding to the page refreshing signal, and refresh the third webpage corresponding to the page refreshing signal.
Optionally, the apparatus 5 further comprises:
the generating unit 51 is further configured to generate, after the third webpage corresponding to the page refresh signal is refreshed, webpage data of the refreshed third webpage in the first browser, where the webpage data is the third data.
The determining unit 52 is further configured to determine fourth webpages corresponding to the account information in the first browser, and acquire webpage data of each fourth webpage in the first browser, where the fourth webpages are webpages of the target website that have been opened in the first browser before the third webpages corresponding to the page refresh signals are refreshed.
The closing unit 53 is further configured to close a fourth webpage corresponding to fourth data different from the third data if the fourth data different from the third data exists.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
The apparatus shown in fig. 5 may be a software unit, a hardware unit, or a combination of software and hardware unit built in the existing terminal device, may be integrated into the terminal device as a separate pendant, or may exist as a separate terminal device.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are 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 operable on the at least one processor 60, wherein the processor 60 executes the computer program 62 to implement the steps in any of the various embodiments of the method for managing a multi-web window described above.
The terminal device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The terminal device may include, but is not limited to, a processor, a memory. Those skilled in the art will appreciate that fig. 6 is only an example of the terminal device 6, and does not constitute a limitation to the terminal device 6, and may include more or less components than those shown, or combine some components, or different components, such as an input/output device, a network access device, and the like.
The Processor 60 may be a Central Processing Unit (CPU), and the Processor 60 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. 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 also be an external storage device of the terminal device 6 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are equipped 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, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 61 may also be used to temporarily store data that has been output or is to be output.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an 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), electrical carrier wave signals, telecommunications signals, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
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 implementation. 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 ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A management method of a multi-webpage window is characterized by comprising 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, wherein the webpage data is first data, and 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 webpage data are second data, and the second webpages are webpages of the target websites opened in the first browser before the webpage opening event;
and if second data different from the first data exists, closing a second webpage corresponding to the second data different from the first data.
2. The method for managing a multi-web window of claim 1, wherein after generating the web page data corresponding to the first web page in the first browser, the method further comprises:
and clearing the cache data of the target website in the current first browser.
3. The method for managing a multi-web window according to claim 2, wherein after said purging the cache data of the target web site in the current first browser, the method further comprises:
when a page refreshing signal of any third webpage in the first browser is monitored, acquiring webpage data of the third webpage in the first browser, which corresponds to the page refreshing signal, 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 the third webpage corresponding to the page refreshing signal in the first browser, and refreshing the third webpage corresponding to the page refreshing signal.
4. The method for managing a multi-web window according to claim 3, 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 are 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, wherein the fourth webpages are webpages of the target websites opened in the first browser before refreshing the 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.
5. The method for managing a multi-web window according to claim 4, wherein generating the web page data of the web page in the first browser for any one of the first web page and the refreshed third web page comprises:
and if the cache data of the target website in the current first browser is empty, generating a random number, and using the random number as the webpage data of the webpage in the first browser.
6. The method for managing a multi-web window according to claim 4, wherein generating the web page data of the web page in the first browser for any one of the first web page and the refreshed third web page 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.
7. The method for managing a multi-web window of claim 1, wherein after generating the web page data corresponding to the first web page in the first browser, the method further comprises:
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 webpages are webpages of the target websites 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.
8. An apparatus for managing a multi-web window, 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 opened in the webpage opening event;
a determining unit, configured to determine second webpages corresponding to the account information in the first browser, and acquire webpage data of each second webpage in the first browser, where the second webpage is a webpage of the target website that has been opened in the first browser before the webpage opening event;
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.
9. 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 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
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 true CN111199003A (en) 2020-05-26
CN111199003B 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)

Cited By (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 (5)

* 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
US20140108520A1 (en) * 2012-05-15 2014-04-17 Tencent Technology (Shenzhen) Company Limited Method and system for seamless webpage browsing
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

Patent Citations (5)

* 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
US20140108520A1 (en) * 2012-05-15 2014-04-17 Tencent Technology (Shenzhen) Company Limited Method and system for seamless webpage browsing
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

Cited By (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

Also Published As

Publication number Publication date
CN111199003B (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN110661776B (en) Sensitive data tracing method, device, security gateway and system
US20160316032A1 (en) Tracking content sharing across a variety of communications channels
CN111290696A (en) Flow control method and device for application program assembly
CN112084179B (en) Data processing method, device, equipment and storage medium
CN112612546A (en) Page loading method and device, electronic equipment and storage medium
CN111199003B (en) Multi-webpage window management method, management device and terminal equipment
CN114022711A (en) Industrial identification data caching method and device, medium and electronic equipment
CN113966590B (en) Site session termination method, device, terminal equipment and medium
CN111935210A (en) Data service method, device, server and storage medium
CN111159009A (en) Pressure testing method and device for log service system
CN110633432A (en) Method, device, terminal equipment and medium for acquiring data
CN113489738B (en) Method, device, equipment and medium for processing violations of broadband account
CN110674426A (en) Webpage behavior reporting method and device
CN111756744B (en) H5 user identification method, device, equipment and storage medium
CN113761443A (en) Website page data acquisition and statistics method, storage medium and equipment
CN103914453A (en) Method and device for local resource access and electronic device
CN112712610A (en) Vehicle diagnosis log processing method and device, terminal device and readable storage medium
CN108920589B (en) Browsing hijacking identification method, device, server and storage medium
CN111950770A (en) Method and device for managing resource return auxiliary strategy and electronic equipment
CN107404397B (en) Method and equipment for determining user service state information
CN111198900A (en) Data caching method and device for industrial control network, terminal equipment and medium
CN113032820A (en) File storage method, access method, device, equipment and storage medium
CN111045823A (en) Context data load distribution method, device, equipment and storage medium
CN109614255B (en) Transaction request processing method, device, medium and electronic equipment
CN111090432A (en) Interface processing method and device and electronic equipment

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