CN112632428A - Page partial refreshing method, device, equipment and storage medium - Google Patents

Page partial refreshing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112632428A
CN112632428A CN202011563004.2A CN202011563004A CN112632428A CN 112632428 A CN112632428 A CN 112632428A CN 202011563004 A CN202011563004 A CN 202011563004A CN 112632428 A CN112632428 A CN 112632428A
Authority
CN
China
Prior art keywords
control object
content control
refresh
display page
refreshing
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
CN202011563004.2A
Other languages
Chinese (zh)
Other versions
CN112632428B (en
Inventor
王金正
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202011563004.2A priority Critical patent/CN112632428B/en
Publication of CN112632428A publication Critical patent/CN112632428A/en
Application granted granted Critical
Publication of CN112632428B publication Critical patent/CN112632428B/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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • 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/953Querying, e.g. by the use of web search engines
    • G06F16/9532Query formulation
    • 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/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a method, a device, equipment and a storage medium for refreshing a page part. The method comprises the following steps: monitoring a local refreshing event in a display page; the local refreshing event is used for triggering the refreshing of a local area in the display page; responding to the local refreshing event, and inquiring a content control object positioned in the local area in the display page; the content control object is used for showing data in the local area; and controlling the content control object positioned in the local area in the display page to execute a refreshing operation so as to refresh the data displayed by the content control object. The content control object is only used for refreshing the data in the local area of the page when the refreshing operation is executed, and the refreshing processing is not carried out on the data in other areas of the page, so that the refreshing efficiency is high.

Description

Page partial refreshing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for partial page refresh.
Background
When designing a page, in order to increase the aesthetic degree of the page and highlight the functionality of the page, a functional area may be set in the page, and the same type of data may be presented in the functional area, so that a user may view data in different categories in the functional area. However, since only a small amount of data in the mass data can be displayed in the functional area, in order to meet the requirement of the user to view more data, a data refresh button or a type replacement button may be provided for the functional area.
For example: in the main page of the video website, a functional area for displaying the information of the drama is set, a 'change-once-for-change' button (data refreshing button) is correspondingly set for the drama display area, and when a user clicks the 'change-once-for-change' button, the information of a new group of dramas is displayed. For another example: in the main page of the book reading website, functional areas for displaying different types of books are set, and in addition, book type selection buttons (type replacement buttons) are correspondingly set for the functional areas, for example: the 'antique' type button and the 'speech' type button show the 'antique' book information in the functional area when the user clicks the 'antique' type button, and show the 'speech' book information in the functional area when the user clicks the 'speech' type button.
In a page provided with a functional area, whether a data refresh button is clicked or a type replacement button is clicked, a page refresh operation is involved. At present, when a page provided with a functional area is refreshed, the whole content of the page needs to be refreshed, and only data in the functional area is really changed in content, and data in other areas in the page is not changed, so that the refreshing efficiency is low by refreshing the whole content of the page to change the display content of the functional area of the page.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method, an apparatus, a device, and a storage medium for refreshing a page locally, so as to solve the problem of low refresh efficiency in a manner of changing display content of a page functional region by refreshing the entire content of a page. The specific technical scheme is as follows:
in a first aspect of the present invention, there is provided a method for refreshing a page locally, including: monitoring a local refreshing event in a display page; the local refreshing event is used for triggering the refreshing of a local area in the display page; responding to the local refreshing event, and inquiring a content control object positioned in the local area in the display page; the content control object is used for showing data in the local area; and controlling the content control object positioned in the local area in the display page to execute a refreshing operation so as to refresh the data displayed by the content control object.
Wherein, in the display page, monitoring a local refresh event, including: monitoring a local refreshing event generated by a refreshing control object in a display page; the local refreshing event is used for triggering a local area corresponding to the refreshing control object to be refreshed; the querying the content control object located in the local area in the presentation page in response to the local refresh event includes: responding to a local refreshing event generated by the refreshing control object, and inquiring a content control object corresponding to the refreshing control object in the display page; the controlling the content control object located in the local area in the display page to execute the refresh operation includes: and controlling the content control object corresponding to the refresh control object in the display page to execute refresh operation.
Before querying the content control object corresponding to the refresh control object in the presentation page, the method further includes: in the process of loading the display page, acquiring a grouping name corresponding to a content control object in the display page; the group names corresponding to the refresh control object and the content control object in the display page are preset, and the group name corresponding to the refresh control object is the same as the group name corresponding to the content control object corresponding to the refresh control object; correspondingly storing the content control object in the display page and the grouping name corresponding to the content control object in the display page into a mapping relation table; the querying of the content control object corresponding to the refresh control object in the presentation page includes: acquiring a grouping name corresponding to the refreshing control object; the group name corresponding to the refresh control object is preset, and the group name corresponding to the refresh control object is the same as the group name corresponding to the content control object in the local area corresponding to the refresh control object; and querying the content control object with the same grouping name as the grouping name corresponding to the refresh control object in the mapping relation table.
After the group name corresponding to the content control object in the presentation page is obtained in the process of loading the presentation page, the method further includes: sending the content control object in the display page and the grouping name corresponding to the content control object in the display page to a preset message center; the storing the corresponding relationship between the content control object in the display page and the grouping name corresponding to the content control object in the display page into a mapping relationship table includes: storing the corresponding relation between the content control object in the display page and the grouping name corresponding to the content control object in the display page into a mapping relation table through the message center; the querying, in the mapping relationship table, the content control object whose group name is the same as the group name corresponding to the refresh control object includes: sending the group name corresponding to the refresh control object to the message center, and querying the content control object with the same group name as the group name corresponding to the refresh control object in the mapping relation table through the message center; the controlling the content control object corresponding to the refresh control object in the display page to execute the refresh operation includes: and controlling the content control object corresponding to the refresh control object to execute refresh operation through the message center.
After the correspondingly storing the content control object in the presentation page and the grouping name corresponding to the content control object in the presentation page into the mapping relation table, the method further includes: if a refresh control object is newly added in the display page, setting a corresponding content control object for the newly added refresh control object, setting the same grouping name for the newly added refresh control object and the content control object corresponding to the newly added refresh control object, and correspondingly storing the content control object corresponding to the newly added refresh control object and the grouping name corresponding to the content control object corresponding to the newly added refresh control object in the mapping relation table; and/or if a content control object is newly added in the display page, setting a corresponding refresh control object for the newly added content control object, setting a group name for the newly added content control object according to the group name corresponding to the refresh control object corresponding to the newly added content control object, and correspondingly storing the newly added content control object and the group name corresponding to the newly added content control object in the mapping relation table; and/or, if the content control object in the display page is destroyed, removing the content control object in the mapping relation table; and/or removing the content control object corresponding to the refresh control object from the mapping relation table if the refresh control object in the display page is destroyed; and/or deleting the mapping relation table if the display page is closed.
Wherein, the mapping relation table is used for storing key value pairs; the key words in the key value pairs are group names, and the key values corresponding to the group names are hash tables; and the hash table is used for storing the content control object corresponding to the grouping name in a weak reference mode.
Wherein the storing the correspondence between the content control object in the presentation page and the group name corresponding to the content control object in the presentation page into a mapping relationship table includes: inquiring whether a grouping name corresponding to the content control object in the display page exists in the keywords of the mapping relation table; if the grouping name corresponding to the content control object in the display page exists, storing the content control object in the display page into a hash table corresponding to the grouping name; and if the group name corresponding to the content control object in the display page does not exist, storing the content control object in the display page into a newly-built hash table, and storing the group name corresponding to the content control object in the display page and the correspondence of the newly-built hash table into the mapping relation table.
Wherein, the querying, in the mapping relationship table, the content control object whose group name is the same as the group name corresponding to the refresh control object includes: inquiring a hash table with the same key word and the group name corresponding to the refreshing control object in the mapping relation table; traversing the content control object in the hash table, and determining the state of the content control object in the hash table in the survival state; the controlling the content control object corresponding to the refresh control object in the display page to execute the refresh operation includes: and controlling the content control object in the survival state in the hash table to execute a refreshing operation.
In a second aspect of the present invention, there is also provided a page partial refresh apparatus, including: the monitoring module is used for monitoring a local refreshing event in the display page; the local refreshing event is used for triggering the refreshing of a local area in the display page; the query module is used for responding to the local refreshing event and querying a content control object positioned in the local area in the display page; the content control object is used for showing data in the local area; and the refreshing module is used for controlling the content control object positioned in the local area in the display page to execute refreshing operation so as to refresh the data displayed by the content control object.
The third method of the embodiment of the present invention further provides an electronic device, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus; a memory for storing a computer program; and the processor is used for realizing the steps of any one of the page partial refreshing methods when executing the program stored in the memory.
In a fourth aspect implemented by the present invention, there is also provided a computer-readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of any of the above-mentioned page partial refresh methods.
In a fifth aspect of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of any of the above-mentioned page partial refresh methods.
According to the method, the device, the equipment and the storage medium for refreshing the page locally, the content control object in the page is used as a refreshing basis, when a local refreshing event is monitored, the content control object is controlled to execute refreshing operation, only the data displayed by the content control object is refreshed, the whole displayed page does not need to be refreshed, namely, only the data in the local area of the page is refreshed, the data in other areas of the page is not refreshed, the data processing amount in the refreshing process is greatly reduced, the refreshing time is shortened, and the refreshing efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flow chart of a method for partial page refresh according to an embodiment of the present invention;
FIG. 2 is a flowchart of a partial page refresh method according to an embodiment of the invention;
FIG. 3 is a flowchart of the steps for setting a group name according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a partial page refresh method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a display page according to an embodiment of the invention;
FIG. 6 is a diagram illustrating a content control object after performing a refresh operation according to an embodiment of the present invention;
FIG. 7 is a block diagram of a partial page refresh apparatus according to an embodiment of the present invention;
fig. 8 is a block diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
The embodiment of the invention provides a page local refreshing method. Fig. 1 is a flowchart illustrating a partial page refresh method according to an embodiment of the invention.
Step S110, monitoring a local refreshing event in a display page; the local refresh event is used for triggering the refresh of the local area in the display page.
The presentation page refers to a portion of a page presented in a user screen presentation area. The presentation page may be a full or partial page. If the length of the page is smaller than or equal to the length of the user screen display area, the displayed page is a whole page, and if the length of the page is larger than the length of the user screen display area, the displayed page is a partial page, and the scrolling displayed page is needed to be used for checking the whole page. For example: the user screen display area is a screen area of the mobile terminal.
And the local refreshing event is used for triggering the refreshing of the local area in the display page. Further, the partial refresh event is used to trigger refreshing of multiple partial regions in the presentation page at the same time.
Step S120, in response to the local refresh event, querying a content control object located in the local area in the display page.
The content control object is used for showing data in the local area.
At least one content control object is included in the local region.
Step S130, controlling the content control object located in the local area in the display page to perform a refresh operation, so as to refresh the data displayed by the content control object.
Controlling the content control object located in the local area in the display page to execute a refresh operation, including: indicating the content control object to acquire new data from a data server, or acquiring new data from locally pre-loaded data, and the like; the currently presented data is replaced with the new data.
Further, if the number of the content control objects is multiple, the multiple content control objects are controlled to respectively execute the refreshing operation. Further, the refreshed data displayed by the plurality of content control objects is different.
In this embodiment, a content control object in a page is used as a refresh basis, and when a local refresh event is monitored, the content control object is controlled to perform a refresh operation, only data displayed by the content control object is refreshed, and the whole display page does not need to be refreshed.
In this embodiment, the listening for the partial refresh event includes: monitoring whether a local refreshing event occurs in a local area of a display page; and if the local refreshing event of the local area is monitored, inquiring the content control object in the local area, and controlling the content control object to execute the refreshing operation. For example: the information frame is arranged in the page and corresponds to the content control object, a user can see data displayed by the content control object in the information frame, the user clicks the information frame, the content control object refreshes the data, and the user can see new data in the information frame.
In this embodiment, the listening for the partial refresh event includes: setting a refreshing control object for at least one content control object in advance, wherein the at least one content control object is positioned in at least one local area in a display page; monitoring a local refreshing event generated by a preset refreshing control object; and if the condition that the refresh control object has a local refresh object is monitored, inquiring the content control object corresponding to the refresh control object, and controlling the content control object corresponding to the refresh control object to execute refresh operation.
The following describes steps for implementing the content control object to perform a refresh operation by refreshing the control object. Fig. 2 is a flowchart illustrating a partial page refresh method according to an embodiment of the invention.
Step S210, in the display page, monitoring a local refresh event generated by the refresh control object.
The refresh control object is used to trigger the occurrence of a partial refresh event for the partial region. The method comprises the steps that a local refreshing event is triggered when a preset click event occurs in a preset key area is monitored by a refreshing control object, or the local refreshing event is triggered when voice information of preset content is collected by the refreshing control object. For example: the refreshing control object corresponds to a 'change-over-one' button area, and when a click event occurs in the 'change-over-one' button area, the occurrence of a local refreshing event is triggered. For another example: and triggering the occurrence of a local refreshing event when the refreshing control object collects the voice information with the content of refreshing the ancient style area.
And the local refreshing event is used for triggering the refreshing of the local area corresponding to the refreshing control object in the display page.
Step S220, responding to a local refreshing event generated by the refreshing control object, and inquiring a content control object corresponding to the refreshing control object in the display page; the content control object is located in the local region and is used to present data in the local region.
The content control object corresponding to the refresh control object is positioned in the local area corresponding to the refresh control object and is used for showing data in the local area. Furthermore, the local area corresponding to the refresh control object comprises at least one content control object, and each content control object is used for showing data in the local area. And synchronously executing the refreshing operation corresponding to the content control object in the local area of the same refreshing control object. The data exposed by the content control object may be data of a data object. The data of the data object is, for example, the cover and name of a book, and the cover and name of a tv series.
Step S230, controlling the content control object corresponding to the refresh control object in the display page to perform a refresh operation, so as to refresh the data displayed by the content control object.
Controlling the content control object corresponding to the refresh control object in the display page to execute refresh operation, including: acquiring new data from a data server, or acquiring new data from locally preloaded data, and the like; the currently presented data is replaced with the new data.
Further, if the number of the content control objects corresponding to the refresh control object is multiple, the multiple content control objects corresponding to the refresh control object are controlled to respectively execute the refresh operation. Further, the refreshed data displayed by the plurality of content control objects is different.
In this embodiment, a refresh control object and a content control object in a page are used as a refresh basis, and when a local refresh event occurring in the refresh control object is monitored, the content control object corresponding to the refresh control object is controlled to execute a refresh operation. In the process, the content control object corresponding to the refresh control object executes the refresh operation only for refreshing the data in the local area of the page, and the data in other areas in the page is not refreshed, so that the refresh efficiency is high.
Furthermore, the content control object is only used for refreshing the data in the local area of the page, so that the content control object does not need to acquire the whole data of the page from the data server or from the local cache, and only the data in the local area is acquired, so that the acquired data volume is small, the network data communication cost is reduced, and the data processing volume during refreshing is reduced and the refreshing speed is increased due to the small acquired data volume.
In order to make the embodiment of the present invention clearer, a more specific embodiment is given below to illustrate the page partial refresh method of the present invention.
In this embodiment, before querying the content control object corresponding to the refresh control object in the presentation page, the content control object corresponding to the refresh control object in the presentation page may be set and recorded.
Specifically, in the process of loading the presentation page, the group name corresponding to the content control object in the presentation page may be obtained; the group name corresponding to the content control object in the display page is preset; correspondingly storing the content control object in the display page and the grouping name corresponding to the content control object in the display page into a mapping relation table; the mapping relation table is used for recording the corresponding relation between the content control object and the grouping name; when a content control object corresponding to the refresh control object in the display page is inquired, acquiring a grouping name corresponding to the refresh control object; the group name corresponding to the refresh control object is preset, and the group name corresponding to the refresh control object is the same as the group name corresponding to the content control object in the local area corresponding to the refresh control object; and querying the content control object with the same grouping name as the grouping name corresponding to the refresh control object in the mapping relation table.
How to set the group name for the refresh control object and the content control object correspondence in the page is further described below.
Fig. 3 is a flowchart illustrating a procedure of setting a group name according to an embodiment of the present invention.
Step S310, grouping the refresh control object and the content control object in the page, and dividing the refresh control object and the content control object in the local area corresponding to the refresh control object into the same group.
When the page is designed, analyzing all content control objects included in the page; determining a content control object which needs to synchronously execute refreshing operation; and determining a refresh control object corresponding to the content control object which needs to synchronously execute the refresh operation.
The area covered by the content control object which needs to synchronously execute the refresh operation is a local area of the page. The partial area may be a complete partial area in the presentation page, or may be a plurality of partial areas distributed in the presentation page.
The refresh control object corresponding to the content control object which needs to synchronously execute the refresh operation refers to a refresh control object for triggering a local refresh event of the local area.
Step S320, setting the same group name for the refresh control object and the content control object in the same group, and setting different group names for the refresh control object and the content control object in different groups.
In this embodiment, in order to identify content control objects that need to perform refresh operations at the same time, an msg _ key (group name) is set for each group, so that both the refresh control object and the content control object in the same group correspond to the common msg _ key. And returning the msg _ key corresponding to each group from the back end to the front end through an interface, so that the content control objects needing to simultaneously execute the refresh operation can be confirmed at the front end through the msg _ key.
In this embodiment, the page design may be modified, and the refresh control object and the content control object in the page may be added or destroyed. If a refresh control object is newly added in the display page, setting a corresponding content control object for the newly added refresh control object, setting the same grouping name for the newly added refresh control object and the content control object corresponding to the newly added refresh control object, and correspondingly storing the content control object corresponding to the newly added refresh control object and the grouping name corresponding to the content control object corresponding to the newly added refresh control object in the mapping relation table; and/or if a content control object is newly added in the display page, setting a corresponding refresh control object for the newly added content control object, setting a group name for the newly added content control object according to the group name of the refresh control object corresponding to the newly added content control object (the group name of the refresh control object corresponding to the newly added content control object is the same), and correspondingly storing the newly added content control object and the group name corresponding to the newly added content control object in a mapping relation table; and/or, if the content control object in the display page is destroyed, removing the content control object in the mapping relation table; and/or removing the content control object corresponding to the refresh control object from the mapping relation table if the refresh control object in the display page is destroyed; and/or deleting the mapping relation table if the display page is closed.
Further, the content control object is destroyed, also called the content control object is released, and the content control object is destroyed, including but not limited to: the content control object is deleted. The showing page being closed comprises: and closing the page to which the display page belongs, and sliding the display page out of the display area of the user screen.
In this embodiment, one or more content control objects may be used to cover and refresh a local area corresponding to a control object, so that the local area is more flexible in setting, the size of the local area may be determined according to a requirement, and the local area may be a part or all of a page function area, for example: the method comprises the steps that 6 book display positions are arranged in a functional area, each book display position is used for displaying book data of a book, and content control objects can be respectively arranged at 3 book display positions, so that when refreshing is carried out, the book data of the 3 book display positions can be refreshed.
The page partial refresh step of the embodiment of the present invention is further described below based on the group names that have been set for the refresh control object and the content control object.
Fig. 4 is a specific flowchart of a page partial refresh method according to an embodiment of the invention.
Step S410, in the process of loading the display page, acquiring the grouping name corresponding to the content control object in the display page.
According to the setting, the group names corresponding to the refresh control object and the content control object in the display page are preset, and the group name corresponding to the refresh control object is the same as the group name corresponding to the content control object corresponding to the refresh control object.
If the length of the page is less than or equal to the length of the user screen display area, the group name corresponding to the content control object in the page (i.e. the display page) can be directly obtained.
If the length of the page is larger than that of the user screen display area, the display page in the user screen display area is a partial page, the display page is dynamically loaded according to the position of a page scroll bar, and the grouping name corresponding to the content control object in the current display page is obtained in the process of loading the current display page.
Further, in the process of loading the current display page, obtaining attribute data of a content control object in the current display page, and obtaining a grouping name corresponding to the content control object from the attribute data of the content control object.
Further, since the presentation page may include a plurality of content control objects, and the plurality of content control objects may correspond to the same or different refresh control objects, when the group name corresponding to the content control object in the presentation page is obtained, the group names corresponding to all the content control objects in the presentation page need to be obtained.
Step S420, sending the content control object in the display page and the group name corresponding to the content control object in the display page to a preset message center.
And the message center is used for managing the corresponding relation between the content control object and the grouping name in the display page and controlling the content control object to execute the refreshing operation.
And calling a registration method, namely, register MessageReceiverWithMsgKey of the message center, and sending the content control object and the msg _ key of the content control object to the message center through the registration method.
Step S430, storing the corresponding relationship between the content control object in the display page and the group name corresponding to the content control object in the display page in a mapping relationship table through the message center.
In this embodiment, the mapping relation table may be used to store key-value pairs (key-value), that is, the mapping relation table is in a key-value structure; the key (key) in the key value pair is a grouping name, and the key value (value) corresponding to the grouping name is a hash table; and the hash table is used for storing the content control object corresponding to the grouping name in a weak reference mode. Further, the pointer of the content control object corresponding to the group name is stored in the hash table in a weak reference mode, so that the purpose of storing the object by using the hash table is achieved. Because the complexity of the lookup time of the hash table is O (1), and the query speed of data is high, the efficiency of object query can be improved by using the hash table to store the content control object, and the content control object can be ensured to be removed from the hash table after the content control object is released by adopting a weak reference mode to store the content control object.
In this embodiment, in the keywords of the mapping relationship table, it is queried whether a group name corresponding to a content control object in the presentation page already exists; if the grouping name corresponding to the content control object in the display page exists, storing the content control object in the display page into a hash table corresponding to the grouping name; and if the group name corresponding to the content control object in the display page does not exist, storing the content control object in the display page into a newly-built hash table, and storing the group name corresponding to the content control object in the display page and the correspondence of the newly-built hash table into the mapping relation table.
Specifically, in order to improve the efficiency of establishing the correspondence between the content control object and the group name thereof in the mapping relationship table, the following two methods may be adopted according to the difference of the page lengths:
in a first mode, under the condition that the length of a page is less than or equal to the length of a user screen display area, a hash table can be correspondingly generated for each group name; storing each content control object into a hash table corresponding to the grouping name according to the grouping name corresponding to each content control object; and generating a mapping relation table according to the corresponding relation between the packet name and the hash table.
In a second mode, under the condition that the length of the page is greater than that of the user screen display area, because the display page in the user screen display area is a partial page and the display page needs to be dynamically loaded according to the position of a page scroll bar, a content control object in the display page in the user screen display area may change along with the scrolling of the page, in the process of loading the current display page, whether a grouping name corresponding to the content control object in the display page exists in a keyword in a mapping relation table is required to be inquired; if the grouping name corresponding to the content control object in the display page exists, storing the content control object in the display page into a hash table corresponding to the grouping name; and if the group name corresponding to the content control object in the display page does not exist, storing the content control object in the display page into a newly-built hash table, and storing the group name corresponding to the content control object in the display page and the correspondence of the newly-built hash table into the mapping relation table.
Further, in case that the length of the page is larger than the length of the user screen presentation area, the message center may perform the following steps:
step 1, a message center judges whether a hash table corresponding to msg _ key already exists in a mapping relation table NSMapTable according to msg _ key corresponding to a content control object messageReceiver; if so, go to step S2; if not, step S3 is performed.
Step S2, if the mapping relationship table NSMapTable does not have the hash table corresponding to the msg _ key, the message center creates a weakly-referenced hash table NSHashTable, and adds the content control object messageReceiver to the hash table NSHashTable, so that the mapping relationship table NSMapTable establishes the correspondence between the msg _ key and the hash table NSHashTable in the form of key-value.
Step S3, if the hash table NSHashTable corresponding to the msg _ key already exists in the mapping relationship table NSMapTable, then according to the msg _ key, the hash table NSHashTable corresponding to the msg _ key is taken out from the mapping relationship table NSMapTable, and the content control object messageReceiver is added to the hash table NSHashTable.
Step S440, in the display page of the user screen display area, monitoring a local refresh event generated by the refresh control object.
The method comprises the steps that a local refreshing event is triggered when a preset click event occurs in a preset key area is monitored by a refreshing control object, or the local refreshing event is triggered when voice information of preset content is collected by the refreshing control object.
For example: the refreshing control object corresponds to a 'change one' key area, and when a click event occurs in the 'change one' key area, the occurrence of a local refreshing event is triggered.
Step S450, responding to the local refreshing event generated by the refreshing control object, and acquiring the grouping name corresponding to the refreshing control object.
And when a local refresh event generated by the refresh control object is monitored, responding to the local refresh event, and acquiring a group name corresponding to the refresh control object.
Step S460, sending the group name corresponding to the refresh control object to the message center.
And calling a message sending method of the message center, and sending the group name corresponding to the refresh control object to the message center through the message sending method.
For example: setting an interface of a message sending method on a refresh control object, calling the interface of the message sending method after acquiring a group name msg _ key corresponding to the refresh control object, transmitting the group name msg _ key corresponding to the refresh control object into the message sending method [ QRM message center sent MessageWithMsgKey: msg _ key ], and further transmitting the group name msg _ key corresponding to the refresh control object to a message center.
Step S470, querying, by the message center, the content control object whose group name is the same as the group name corresponding to the refresh control object in the mapping relationship table.
Inquiring a Hash table with the same key words and the group names corresponding to the refreshing control objects in a mapping relation table; and traversing the content control object in the hash table, and determining the state of the content control object in the survival state in the hash table.
Further, the types of the states of the control objects (the control objects include: refresh control object, content control object, and independent control object) include: a survival state and a destruction state.
The survival state means that the control object can show data in the showing page.
The destroy state means that the control object has been released, such as: the control object is deleted in the display page, and the data cannot be displayed in the display page.
Specifically, the message center queries a hash table NSHashTable corresponding to the msg _ key from a mapping relation table NSMapTable according to the msg _ key corresponding to the refreshed control object, traverses the hash table NSHashTable, and determines the state of each content control object in the hash table NSHashTable. If the content control object is nil, the content control object is in a destruction state and is released; and if the content control object is not nil, the content control object is in an alive state and is not released.
If the content control object is nil, the content control object is removed from the hash table NSHashTable. When the content control object is removed from the hash table NSHashTable, the message center may call a removal method removemessagereceivewithmsgkey: object of the message center to remove the content control object from the hash table NSHashTable.
Step S480, controlling, by the message center, the content control object corresponding to the refresh control object to execute a refresh operation.
Controlling the content control object corresponding to the refresh control object to execute refresh operation, including: and controlling the content control object in the survival state in the hash table to execute a refreshing operation. Further, the content control object is refreshed by calling a data acquisition interface of the data server or acquiring new data from the cached data.
In this embodiment, a mapping relationship table is constructed in a message center at a front end, when a click event is monitored, a local refresh event is triggered, msg _ keys corresponding to refresh control objects, that is, msg _ keys corresponding to content control objects that need to be refreshed are transmitted to the message center, and the message center finds out content control objects corresponding to msg _ keys according to msg _ keys and then controls the corresponding content control objects to execute refresh operations.
Further, the present embodiment may be implemented using the runtime mechanism of iOS. And in the process of loading the display page, adding the content control object in the display page to a message center. The message center uses the hash table to establish weak reference to the content control object, and uses the mapping relation table in the form of key-value to establish the corresponding relation between the msg _ key and the hash table, so that the message center can take out all the content control objects in the corresponding hash table according to the incoming msg _ key, and all the taken out content control objects can respectively execute refresh operation.
It should be known to those skilled in the art that, in the process of executing the embodiment of the present invention, the refresh control object may be released, and after the refresh control object is released, the refresh control object does not exist in the presentation page, and it is also not necessary for the content control object in the local area corresponding to the refresh control object to perform a refresh operation, so after the refresh control object is released, the hash table NSHashTable corresponding to the msg _ key corresponding to the refresh control object needs to be removed. Certainly, in order to ensure page aesthetics, all content control objects of the refresh control object may be released at one time, so that after one content object control corresponding to the refresh control object is released, the hash table NSHashTable corresponding to the msg _ key corresponding to the refresh control object may be removed.
In order to make the embodiments of the present invention easier to understand, a specific application scenario example is given below to further describe the page partial refresh method according to the embodiments of the present invention. Fig. 5 is a schematic diagram of a display page according to an embodiment of the invention.
The steps to be performed at the back end are as follows:
the back end sets 4 button regions in the presentation page shown in fig. 5, and each button region corresponds to a refresh control object. The 'ancient clothes' button area corresponds to the refreshing control object 1, the 'speech' button area corresponds to the refreshing control object 2, the 'martial art' button area corresponds to the refreshing control object 3, and the 'era' button area corresponds to the refreshing control object 4.
In the display page shown in fig. 5, the back end needs to click a button area, and can refresh data of 6 content control objects at the same time. In this way, 6 common content control objects are correspondingly set for the refresh control objects 1 to 4, and the 6 content control objects are a content control object a, a content control object B, a content control object C, a content control object D, a content control object E, and a content control object F, respectively.
When the group names are set at the rear end, according to the requirement that the data of the 6 content control objects need to be refreshed simultaneously, different group names are set for the refreshing control objects corresponding to the 4 button areas respectively, namely 4 group names are set, and the 4 group names are set for each content control object in the 6 content control objects. Of course, in order to achieve simplicity, the same group name msg _ key is set for the 4 refresh control objects and the 6 content control objects in this embodiment, so that the interface at the back end may only return one msg _ key to the front end.
The steps performed at the front end are as follows:
when the display page shown in fig. 5 is loaded, the front end acquires the group names msg _ key which are respectively and correspondingly set in advance for the content control object a, the content control object B, the content control object C, the content control object D, the content control object E and the content control object F.
The front end calls a registration method, namely, a register MessageReceiverWithMsgKey, of the message center, and sends a content control object A, a content control object B, a content control object C, a content control object D, a content control object E, a content control object F and a group name msg _ key to the message center.
The message center calls an addMessageReceiver msg _ key method to create a hash table corresponding to the msg _ key, adds a content control object A, a content control object B, a content control object C, a content control object D, a content control object E and a content control object F into the hash table, and establishes a corresponding relation between the group name msg _ key and the hash table in a mapping relation table.
Further, in the page scrolling process, the display page is dynamically loaded, and the content control object a, the content control object B, and the content control object C may appear in the display page first, then the message center needs to create a hash table corresponding to the msg _ key first, add the content control object a, the content control object B, and the content control object C to the hash table, and establish a corresponding relationship between the msg _ key and the hash table in the mapping relationship table. After the content control object D, the content control object E, and the content control object F appear in the presentation page, the message center may directly add the content control object D, the content control object E, and the content control object F to the hash table.
The front end monitors local refresh events in the refresh control objects 1 to 4 respectively, if the local refresh events are monitored in the refresh control object 2, the msg _ key of the refresh control object 2 is obtained, and a message sending method of a message center is called to transmit the msg _ key to the message center.
And the message center inquires a corresponding hash table in the mapping relation table according to the msg _ key, traverses a content control object A, a content control object B, a content control object C, a content control object D, a content control object E and a content control object F in the hash table, and determines that the content control object A, the content control object B, the content control object C, the content control object D, the content control object E and the content control object F are all in a survival state. Of course, if the state of a part of the content control objects in the content control object a, the content control object B, the content control object C, the content control object D, the content control object E, and the content control object F is a destroyed state, the part of the content control object is removed from the hash table.
And the message center calls a content control object A, a content control object B, a content control object C, a content control object D, a content control object E and a content control object F to respectively execute refreshing operation on the content control object A, the content control object B, the content control object C, the content control object D, the content control object E and the content control object F. Fig. 6 is a schematic diagram illustrating a content control object after performing a refresh operation according to an embodiment of the present invention.
In the embodiment, the rear end issues the msg _ key of the control object to the front end, so that the control object is conveniently managed in a unified manner; grouping the content control objects which need to be refreshed together, so that the refreshing of the content control objects in different groups is not influenced mutually; the refreshing of the packets is controlled by the message center, and the packets are easy to manage by the front end.
The embodiment of the invention also provides a device for refreshing the local page. Fig. 7 is a block diagram of a page partial refresh apparatus according to an embodiment of the invention.
The page partial refreshing device comprises: a listening module 710, a query module 720, and a refresh module 730.
A monitoring module 710, configured to monitor a local refresh event in a display page; the local refresh event is used for triggering the refresh of the local area in the display page.
A query module 720, configured to query, in response to the local refresh event, a content control object located in the local area in the presentation page; the content control object is used for showing data in the local area.
The refreshing module 730 is configured to control the content control object located in the local area in the display page to perform a refreshing operation, so as to refresh data displayed by the content control object.
The functions of the apparatus according to the embodiments of the present invention have been described in the above method embodiments, so that reference may be made to the related descriptions in the foregoing embodiments for details which are not described in the present embodiment, and further details are not described herein.
An embodiment of the present invention further provides an electronic device, as shown in fig. 8, including a processor 810, a communication interface 820, a memory 830, and a communication bus 840, where the processor 810, the communication interface 820, and the memory 830 complete mutual communication through the communication bus 840.
A memory 830 for storing computer programs.
The processor 810, when executing the program stored in the memory 830, implements the following steps: monitoring a local refreshing event in a display page; the local refreshing event is used for triggering the refreshing of a local area in the display page; responding to the local refreshing event, and inquiring a content control object positioned in the local area in the display page; the content control object is used for showing data in the local area; and controlling the content control object positioned in the local area in the display page to execute a refreshing operation so as to refresh the data displayed by the content control object.
Wherein, in the display page, monitoring a local refresh event, including: monitoring a local refreshing event generated by a refreshing control object in a display page; the local refreshing event is used for triggering a local area corresponding to the refreshing control object to be refreshed; the querying the content control object located in the local area in the presentation page in response to the local refresh event includes: responding to a local refreshing event generated by the refreshing control object, and inquiring a content control object corresponding to the refreshing control object in the display page; the controlling the content control object located in the local area in the display page to execute the refresh operation includes: and controlling the content control object corresponding to the refresh control object in the display page to execute refresh operation.
Before querying the content control object corresponding to the refresh control object in the presentation page, the method further includes: in the process of loading the display page, acquiring a grouping name corresponding to a content control object in the display page; the group names corresponding to the refresh control object and the content control object in the display page are preset, and the group name corresponding to the refresh control object is the same as the group name corresponding to the content control object corresponding to the refresh control object; correspondingly storing the content control object in the display page and the grouping name corresponding to the content control object in the display page into a mapping relation table; the querying of the content control object corresponding to the refresh control object in the presentation page includes: acquiring a grouping name corresponding to the refreshing control object; the group name corresponding to the refresh control object is preset, and the group name corresponding to the refresh control object is the same as the group name corresponding to the content control object in the local area corresponding to the refresh control object; and querying the content control object with the same grouping name as the grouping name corresponding to the refresh control object in the mapping relation table.
After the group name corresponding to the content control object in the presentation page is obtained in the process of loading the presentation page, the method further includes: sending the content control object in the display page and the grouping name corresponding to the content control object in the display page to a preset message center; the storing the corresponding relationship between the content control object in the display page and the grouping name corresponding to the content control object in the display page into a mapping relationship table includes: storing the corresponding relation between the content control object in the display page and the grouping name corresponding to the content control object in the display page into a mapping relation table through the message center, and correspondingly setting a message center agent for the content control object in the display page; the querying, in the mapping relationship table, the content control object whose group name is the same as the group name corresponding to the refresh control object includes: sending the group name corresponding to the refresh control object to the message center, and querying the content control object with the same group name as the group name corresponding to the refresh control object in the mapping relation table through the message center; the controlling the content control object corresponding to the refresh control object in the display page to execute the refresh operation includes: and calling a message center agent of the content control object corresponding to the refreshing control object through the message center, and controlling the content control object corresponding to the refreshing control object to execute refreshing operation.
After the correspondingly storing the content control object in the presentation page and the grouping name corresponding to the content control object in the presentation page into the mapping relation table, the method further includes: if a refresh control object is newly added in the display page, setting a corresponding content control object for the newly added refresh control object, setting the same grouping name for the newly added refresh control object and the content control object corresponding to the newly added refresh control object, and correspondingly storing the content control object corresponding to the newly added refresh control object and the grouping name corresponding to the content control object corresponding to the newly added refresh control object in the mapping relation table; and/or if a content control object is newly added in the display page, setting a corresponding refresh control object for the newly added content control object, setting a group name for the newly added content control object according to the group name corresponding to the refresh control object corresponding to the newly added content control object, and correspondingly storing the newly added content control object and the group name corresponding to the newly added content control object in the mapping relation table; and/or, if the content control object in the display page is destroyed, removing the content control object in the mapping relation table; and/or removing the content control object corresponding to the refresh control object from the mapping relation table if the refresh control object in the display page is destroyed; and/or deleting the mapping relation table if the display page is closed.
Wherein, the mapping relation table is used for storing key value pairs; the key words in the key value pairs are group names, and the key values corresponding to the group names are hash tables; and the hash table is used for storing the content control object corresponding to the grouping name in a weak reference mode.
Wherein the storing the correspondence between the content control object in the presentation page and the group name corresponding to the content control object in the presentation page into a mapping relationship table includes: inquiring whether a grouping name corresponding to the content control object in the display page exists in the keywords of the mapping relation table; if the grouping name corresponding to the content control object in the display page exists, storing the content control object in the display page into a hash table corresponding to the grouping name; and if the group name corresponding to the content control object in the display page does not exist, storing the content control object in the display page into a newly-built hash table, and storing the group name corresponding to the content control object in the display page and the correspondence of the newly-built hash table into the mapping relation table.
Wherein, the querying, in the mapping relationship table, the content control object whose group name is the same as the group name corresponding to the refresh control object includes: inquiring a hash table with the same key word and the group name corresponding to the refreshing control object in the mapping relation table; traversing the content control object in the hash table, and determining the state of the content control object in the hash table in the survival state; the controlling the content control object corresponding to the refresh control object in the display page to execute the refresh operation includes: and controlling the content control object in the survival state in the hash table to execute a refreshing operation.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a computer-readable storage medium is further provided, which has instructions stored therein, and when the computer-readable storage medium is run on a computer, the computer is caused to execute the page partial refresh method in any one of the above embodiments.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the page partial refresh method of any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (11)

1. A method for refreshing a page locally, comprising:
monitoring a local refreshing event in a display page; the local refreshing event is used for triggering the refreshing of a local area in the display page;
responding to the local refreshing event, and inquiring a content control object positioned in the local area in the display page; the content control object is used for showing data in the local area;
and controlling the content control object positioned in the local area in the display page to execute a refreshing operation so as to refresh the data displayed by the content control object.
2. The method of claim 1,
the monitoring a local refresh event in the display page includes:
monitoring a local refreshing event generated by a refreshing control object in a display page; the local refreshing event is used for triggering a local area corresponding to the refreshing control object to be refreshed;
the querying the content control object located in the local area in the presentation page in response to the local refresh event includes:
responding to a local refreshing event generated by the refreshing control object, and inquiring a content control object corresponding to the refreshing control object in the display page;
the controlling the content control object located in the local area in the display page to execute the refresh operation includes:
and controlling the content control object corresponding to the refresh control object in the display page to execute refresh operation.
3. The method of claim 1,
before querying the content control object corresponding to the refresh control object in the presentation page, the method further includes:
in the process of loading the display page, acquiring a grouping name corresponding to a content control object in the display page; the group names corresponding to the refresh control object and the content control object in the display page are preset, and the group name corresponding to the refresh control object is the same as the group name corresponding to the content control object corresponding to the refresh control object;
correspondingly storing the content control object in the display page and the grouping name corresponding to the content control object in the display page into a mapping relation table;
the querying of the content control object corresponding to the refresh control object in the presentation page includes:
acquiring a grouping name corresponding to the refreshing control object;
and querying the content control object with the same grouping name as the grouping name corresponding to the refresh control object in the mapping relation table.
4. The method of claim 3,
after the group name corresponding to the content control object in the presentation page is obtained in the process of loading the presentation page, the method further includes:
sending the content control object in the display page and the grouping name corresponding to the content control object in the display page to a preset message center;
the storing the corresponding relationship between the content control object in the display page and the grouping name corresponding to the content control object in the display page into a mapping relationship table includes:
storing the corresponding relation between the content control object in the display page and the grouping name corresponding to the content control object in the display page into a mapping relation table through the message center;
the querying, in the mapping relationship table, the content control object whose group name is the same as the group name corresponding to the refresh control object includes:
sending the group name corresponding to the refresh control object to the message center, and querying the content control object with the same group name as the group name corresponding to the refresh control object in the mapping relation table through the message center;
the controlling the content control object corresponding to the refresh control object in the display page to execute the refresh operation includes:
and controlling the content control object corresponding to the refresh control object to execute refresh operation through the message center.
5. The method according to claim 3, further comprising, after storing the content control object in the presentation page and the group name correspondence corresponding to the content control object in the presentation page in a mapping table:
if a refresh control object is newly added in the display page, setting a corresponding content control object for the newly added refresh control object, setting the same grouping name for the newly added refresh control object and the content control object corresponding to the newly added refresh control object, and correspondingly storing the content control object corresponding to the newly added refresh control object and the grouping name corresponding to the content control object corresponding to the newly added refresh control object in the mapping relation table; and/or the presence of a gas in the gas,
if a content control object is newly added in the display page, setting a corresponding refreshing control object for the newly added content control object, correspondingly setting a grouping name for the newly added content control object according to the grouping name corresponding to the refreshing control object corresponding to the newly added content control object, and correspondingly storing the newly added content control object and the grouping name corresponding to the newly added content control object in the mapping relation table; and/or the presence of a gas in the gas,
if the content control object in the display page is destroyed, removing the content control object in the mapping relation table; and/or the presence of a gas in the gas,
if the refresh control object in the display page is destroyed, removing the content control object corresponding to the refresh control object in the mapping relation table; and/or the presence of a gas in the gas,
and if the display page is closed, deleting the mapping relation table.
6. The method according to any one of claims 3 to 5,
the mapping relation table is used for storing key value pairs; the key words in the key value pairs are group names, and the key values corresponding to the group names are hash tables; and the hash table is used for storing the content control object corresponding to the grouping name in a weak reference mode.
7. The method of claim 6, wherein storing the correspondence between the content control object in the presentation page and the group name corresponding to the content control object in the presentation page in a mapping table comprises:
inquiring whether a grouping name corresponding to the content control object in the display page exists in the keywords of the mapping relation table;
if the grouping name corresponding to the content control object in the display page exists, storing the content control object in the display page into a hash table corresponding to the grouping name;
and if the group name corresponding to the content control object in the display page does not exist, storing the content control object in the display page into a newly-built hash table, and storing the group name corresponding to the content control object in the display page and the correspondence of the newly-built hash table into the mapping relation table.
8. The method of claim 6,
the querying, in the mapping relationship table, the content control object whose group name is the same as the group name corresponding to the refresh control object includes:
inquiring a hash table with the same key word and the group name corresponding to the refreshing control object in the mapping relation table;
traversing the content control object in the hash table, and determining the state of the content control object in the hash table in the survival state;
the controlling the content control object corresponding to the refresh control object in the display page to execute the refresh operation includes:
and controlling the content control object in the survival state in the hash table to execute a refreshing operation.
9. A page partial refresh apparatus, comprising:
the monitoring module is used for monitoring a local refreshing event in the display page; the local refreshing event is used for triggering the refreshing of a local area in the display page;
the query module is used for responding to the local refreshing event and querying a content control object positioned in the local area in the display page; the content control object is used for showing data in the local area;
and the refreshing module is used for controlling the content control object positioned in the local area in the display page to execute refreshing operation so as to refresh the data displayed by the content control object.
10. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 8 when executing a program stored in the memory.
11. A computer-readable storage medium, on 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 8.
CN202011563004.2A 2020-12-25 2020-12-25 Page local refreshing method, device, equipment and storage medium Active CN112632428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011563004.2A CN112632428B (en) 2020-12-25 2020-12-25 Page local refreshing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011563004.2A CN112632428B (en) 2020-12-25 2020-12-25 Page local refreshing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112632428A true CN112632428A (en) 2021-04-09
CN112632428B CN112632428B (en) 2023-10-10

Family

ID=75325857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011563004.2A Active CN112632428B (en) 2020-12-25 2020-12-25 Page local refreshing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112632428B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116974605A (en) * 2023-07-31 2023-10-31 南京国电南自轨道交通工程有限公司 Event mechanism-based 3D system interface local refreshing method and system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6057834A (en) * 1998-06-12 2000-05-02 International Business Machines Corporation Iconic subscription schedule controller for a graphic user interface
US20090070190A1 (en) * 2007-09-12 2009-03-12 Microsoft Corporation Updating contents of asynchronously refreshable webpages
CN101611399A (en) * 2007-02-16 2009-12-23 罗凡 Webpage, website modeling and generation
CN104067276A (en) * 2012-01-19 2014-09-24 微软公司 Client-side minimal download and simulated page navigation features
US20180067595A1 (en) * 2012-12-20 2018-03-08 Open Text Corporation Mechanism for partial page refresh using url addressable hierarchical page structure
CN108399222A (en) * 2018-02-11 2018-08-14 北京奇艺世纪科技有限公司 A kind of page furbishing method and device
CN108681550A (en) * 2018-03-30 2018-10-19 北京奇艺世纪科技有限公司 Page furbishing method, the control method of device and page furbishing, device
CN109101310A (en) * 2018-08-20 2018-12-28 山东浪潮通软信息科技有限公司 A kind of page furbishing method and device
CN110647704A (en) * 2019-09-20 2020-01-03 北京思维造物信息科技股份有限公司 Page updating method, device and equipment
CN111666516A (en) * 2020-04-24 2020-09-15 北京奇艺世纪科技有限公司 Page loading method and device, electronic equipment and storage medium
CN111796821A (en) * 2020-06-17 2020-10-20 北京三快在线科技有限公司 Page updating method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6057834A (en) * 1998-06-12 2000-05-02 International Business Machines Corporation Iconic subscription schedule controller for a graphic user interface
CN101611399A (en) * 2007-02-16 2009-12-23 罗凡 Webpage, website modeling and generation
US20090070190A1 (en) * 2007-09-12 2009-03-12 Microsoft Corporation Updating contents of asynchronously refreshable webpages
CN104067276A (en) * 2012-01-19 2014-09-24 微软公司 Client-side minimal download and simulated page navigation features
US20180067595A1 (en) * 2012-12-20 2018-03-08 Open Text Corporation Mechanism for partial page refresh using url addressable hierarchical page structure
CN108399222A (en) * 2018-02-11 2018-08-14 北京奇艺世纪科技有限公司 A kind of page furbishing method and device
CN108681550A (en) * 2018-03-30 2018-10-19 北京奇艺世纪科技有限公司 Page furbishing method, the control method of device and page furbishing, device
CN109101310A (en) * 2018-08-20 2018-12-28 山东浪潮通软信息科技有限公司 A kind of page furbishing method and device
CN110647704A (en) * 2019-09-20 2020-01-03 北京思维造物信息科技股份有限公司 Page updating method, device and equipment
CN111666516A (en) * 2020-04-24 2020-09-15 北京奇艺世纪科技有限公司 Page loading method and device, electronic equipment and storage medium
CN111796821A (en) * 2020-06-17 2020-10-20 北京三快在线科技有限公司 Page updating method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116974605A (en) * 2023-07-31 2023-10-31 南京国电南自轨道交通工程有限公司 Event mechanism-based 3D system interface local refreshing method and system

Also Published As

Publication number Publication date
CN112632428B (en) 2023-10-10

Similar Documents

Publication Publication Date Title
US11768811B1 (en) Managing user data in a multitenant deployment
US11803548B1 (en) Automated generation of metrics from log data
WO2021068488A1 (en) Blockchain-based log processing method and apparatus, computer device, and storage medium
US7292961B2 (en) Capturing session activity as in-memory snapshots using a time-based sampling technique within a database for performance tuning and problem diagnosis
CN109885786B (en) Data caching processing method and device, electronic equipment and readable storage medium
US11768776B1 (en) Evicting data associated with a data intake and query system from a local storage
US11138191B1 (en) Multi-field search query of result data set generated from event data
CN111177165B (en) Method, device and equipment for detecting data consistency
CN110162512B (en) Log retrieval method, device and storage medium
CN109388671B (en) Data processing method, device, equipment and storage medium
CN112015646A (en) Network request monitoring method and device, computer equipment and storage medium
US20220318319A1 (en) Focus Events
CN111382206B (en) Data storage method and device
US10915510B2 (en) Method and apparatus of collecting and reporting database application incompatibilities
CN112632428B (en) Page local refreshing method, device, equipment and storage medium
CN107656999B (en) Call history tracing method and device, electronic equipment and storage medium
CN110928885B (en) Method and device for updating data of Mysql database to Es database
CN112135199B (en) Video playing method based on multiple types of video sources and related equipment
CN111258877B (en) Method and device for detecting visible time of first screen page and electronic equipment
CN110019259B (en) Data updating method, device and storage medium of distributed index service engine
CN109408758B (en) Page display method, device, server and medium based on data processing
WO2024001785A1 (en) Content pushing method, terminal, server, and computer readable storage medium
CN106407238B (en) Method and system for media content interaction
EP2742433B1 (en) System and method for storing information about transactions over a network
US11934256B1 (en) Determining ingestion latency of data intake and query system instances

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