CN113312119B - Information synchronization method and device, computer readable storage medium and electronic equipment - Google Patents

Information synchronization method and device, computer readable storage medium and electronic equipment Download PDF

Info

Publication number
CN113312119B
CN113312119B CN202110624072.3A CN202110624072A CN113312119B CN 113312119 B CN113312119 B CN 113312119B CN 202110624072 A CN202110624072 A CN 202110624072A CN 113312119 B CN113312119 B CN 113312119B
Authority
CN
China
Prior art keywords
page
sub
time
information
parent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110624072.3A
Other languages
Chinese (zh)
Other versions
CN113312119A (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.)
Guangzhou Boguan Information Technology Co Ltd
Original Assignee
Guangzhou Boguan Information 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 Guangzhou Boguan Information Technology Co Ltd filed Critical Guangzhou Boguan Information Technology Co Ltd
Priority to CN202110624072.3A priority Critical patent/CN113312119B/en
Publication of CN113312119A publication Critical patent/CN113312119A/en
Application granted granted Critical
Publication of CN113312119B publication Critical patent/CN113312119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/4492Inheritance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/12Synchronisation of different clock signals provided by a plurality of clock generators
    • 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 disclosure relates to the technical field of computers, and provides an information synchronization method, an information synchronization device, a storage medium and electronic equipment, wherein the method comprises the following steps: when loading of a sub page corresponding to a parent page is completed, a terminal device monitors an interaction event on the parent page, wherein the parent page and the sub page are simultaneously displayed on a display interface of the terminal device; and when the terminal equipment monitors that the interaction event exists on the parent page, sending a time synchronization instruction to the child page, and synchronizing time information according to the time synchronization instruction by the child page. The method and the device can synchronize the time information of the sub-pages, avoid the problem that the time information of the parent page is inconsistent with the time information of the sub-pages, and optimize user experience.

Description

Information synchronization method and device, computer readable storage medium and electronic equipment
Technical Field
The disclosure relates to the field of computer technology, and in particular, to an information synchronization method, an information synchronization device, a computer readable storage medium and electronic equipment.
Background
With the development of computer technology, in front-end development, a single-page web application (Single Page Web Application, SPA) may be employed to improve web page loading efficiency. A single page web application is a web application that is created by loading a single web page and dynamically updating the page as the user interacts with the web application. I.e., the browser or other client will initially load all resource files, after which all operations are completed on the web page, the originally loaded web page being referred to as the parent page.
It is often the case that one or more child pages are embedded in a parent page, such as in a live game room, there are multiple game play portals and play pages. The play entries or play pages are embedded sub pages corresponding to the live broadcasting room. In multiple embedded sub-pages, it may sometimes be desirable to present a piece of time information that is consistent with that in the parent page. However, because the time for completing the specific loading of different sub-pages is inconsistent, the countdown of the display of each sub-page is not synchronous, and the use experience of a user is affected.
In view of this, there is a need in the art to develop a new information synchronization method and apparatus.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The disclosure aims to provide an information synchronization method, an information synchronization device, a computer readable storage medium and an electronic device, so as to solve the problem of asynchronous time information of sub pages at least to a certain extent.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to one aspect of the present disclosure, there is provided an information synchronization method, the method including: when loading of a sub page corresponding to a parent page is completed, a terminal device monitors an interaction event on the parent page, wherein the parent page and the sub page are simultaneously displayed on a display interface of the terminal device; and when the terminal equipment monitors that the interaction event exists on the parent page, sending a time synchronization instruction to the child page, and synchronizing time information according to the time synchronization instruction by the child page.
In some exemplary embodiments of the present disclosure, the synchronizing the time information by the sub-page according to the time synchronization instruction includes: and the sub page receives the time information synchronization instruction, acquires the current system time and synchronizes the time information according to the current system time.
In some exemplary embodiments of the present disclosure, synchronizing time information according to the current system time includes: and deleting the current timing task, and creating a new timing task according to the current system time and the timing ending time stamp.
In some exemplary embodiments of the present disclosure, the timing time information on the sub-page is updated according to the new timing task, and the timing time information is displayed on a display interface of the sub-page.
In some exemplary embodiments of the present disclosure, sending a time synchronization instruction to the sub-page includes: acquiring a last reset time stamp, and determining a reset time interval according to the last reset time stamp and the current system time; and when the reset time interval is greater than or equal to a preset time interval, sending the time synchronization instruction to the sub page.
In some exemplary embodiments of the present disclosure, a timing end timestamp is sent to the sub-page when the sub-page is loaded.
In some exemplary embodiments of the present disclosure, in response to a triggering operation of a user for a child page identification in a parent page, the child page is loaded according to the child page identification.
In some exemplary embodiments of the present disclosure, the interaction event includes one or more of a click operation, a move mouse operation, a scroll mouse operation of the user on the parent page.
According to an aspect of the present disclosure, there is provided an information synchronization apparatus including: the monitoring module is used for monitoring interaction events of the parent page by the terminal equipment when loading of the sub page corresponding to the parent page is completed; and the reset module is used for sending a time synchronization instruction to the sub-page when the terminal equipment monitors that the interaction event exists on the parent page, and the sub-page synchronizes the time information according to the time synchronization instruction.
According to an aspect of the present disclosure, there is provided a computer-readable medium having stored thereon a computer program which, when executed by a processor, implements an information synchronization method as described in the above embodiments.
According to one aspect of the present disclosure, there is provided an electronic device including: one or more processors; and a storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the information synchronization method as described in the above embodiments.
As can be seen from the above technical solutions, the information synchronization method and apparatus, the computer-readable storage medium, and the electronic device in the exemplary embodiments of the present disclosure have at least the following advantages and positive effects:
according to the information synchronization method, when loading of the sub-page corresponding to the parent page is completed, the terminal equipment monitors an interaction event on the parent page, wherein the parent page and the sub-page are simultaneously displayed on a display interface of the terminal equipment; when the terminal equipment monitors that the interaction event exists in the parent page, a time synchronization instruction is sent to the sub-page, and the sub-page synchronizes the time information according to the time synchronization instruction. According to the information synchronization method, on one hand, the information synchronization is triggered by monitoring the interaction event, so that the efficiency and the accuracy of the information synchronization are improved; on the other hand, the time information of the sub-pages can be synchronized, the problem that the time information of the parent page is inconsistent with the time information of the sub-pages is avoided, and user experience is optimized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 schematically illustrates a flow diagram of an information synchronization method according to an embodiment of the present disclosure;
fig. 2 schematically illustrates a method flow diagram of a display interface of a terminal device according to an embodiment of the disclosure;
FIG. 3 schematically illustrates a method flow diagram of sending a time synchronization instruction according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow diagram of an information synchronization method according to a particular embodiment of the present disclosure;
FIG. 5 schematically illustrates a block diagram of an information synchronization device according to an embodiment of the disclosure;
FIG. 6 schematically illustrates a block diagram of an electronic device according to an embodiment of the disclosure;
fig. 7 schematically illustrates a program product schematic according to an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the disclosed aspects may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
In the related art, since loading of different child pages corresponding to the same parent page is completed at different times. For example, sub-page A counts down from a time stamp of 111.5s and sub-page B counts down from a time stamp of 112 s. Then a countdown update is performed after 1 second, then sub-page A is updated at 112.5s, sub-page B is updated at 113s, and the update times of the two sub-pages differ by 0.5s. That is, the countdown information on the two sub-pages is not synchronized.
The prior art scheme is that a server side pushes synchronization information to one or more sub-pages, and different sub-pages perform countdown update calibration at the same time after receiving the synchronization information. However, the cost of using the server to push the synchronization information for countdown information synchronization is high, and the synchronization information needs to be pushed after all the sub-pages are completely loaded, otherwise, the situation that the synchronization information cannot be received by the individual sub-pages occurs, and the efficiency of information synchronization is low.
Based on the problems existing in the related art, in one embodiment of the present disclosure, an information synchronization method is provided, and fig. 1 shows a flow chart of the information synchronization method, and as shown in fig. 1, the information synchronization method at least includes the following steps:
step S110: when loading of the sub page corresponding to the parent page is completed, the terminal equipment monitors an interaction event on the parent page, wherein the parent page and the sub page are simultaneously displayed on a display interface of the terminal equipment;
step S120: when the terminal equipment monitors that the interaction event exists on the parent page, a time synchronization instruction is sent to the sub-page, and the sub-page synchronizes the time information according to the time synchronization instruction.
According to the information synchronization method in the embodiment of the disclosure, on one hand, the information synchronization is triggered by monitoring the interaction event, so that the efficiency and the accuracy of the information synchronization are improved; on the other hand, the time information of the sub-pages can be synchronized, the problem that the time information of the parent page is inconsistent with the time information of the sub-pages is avoided, and user experience is optimized.
It should be noted that, the information synchronization method according to the exemplary embodiment of the present disclosure may be performed by a server, and an information synchronization apparatus corresponding to the information synchronization method may also be configured in the server. Furthermore, it should be understood that the terminal device may also implement the steps of the information synchronization method, and the corresponding apparatus may also be configured in the terminal device. The terminal device may be implemented in various forms, for example, may include a mobile device such as a mobile phone, a tablet computer, a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA), a navigation device, a wearable device, an unmanned aerial vehicle, and a fixed device such as a desktop computer and a smart television.
In order to make the technical solution of the present disclosure clearer, each step of the information synchronization method is described next.
In step S110, when loading of the sub page corresponding to the parent page is completed, the terminal device monitors an interaction event on the parent page, where the parent page and the sub page are simultaneously displayed on a display interface of the terminal device.
In an exemplary embodiment of the present disclosure, upon receiving an open operation by a user for a certain web application or application program, a parent page is loaded and displayed on a display interface. And acquiring the child page to be loaded through the parent page, and displaying the child page in a manner of being nested in the parent page.
The parent page corresponds to one or more sub pages, and after loading of each sub page corresponding to the parent page is completed, the parent page and each sub page are displayed on the display interface in a nested manner.
For example, fig. 2 shows an interface schematic diagram of a display interface of a terminal device, where a parent page 201, and a first sub-page 202 and a second sub-page 203 are displayed, as shown in fig. 2. The first sub page 202 and the second sub page 203 are respectively displayed in a nested manner with the parent page 201, and the specific display sizes and display positions of the first sub page 202 and the second sub page 203 are not specifically limited in this disclosure.
In an exemplary embodiment of the present disclosure, if the parent page corresponds to multiple child pages, a real-time monitoring task may be performed when loading of each child page is completed, until it is monitored that an interaction event exists on the parent page. In addition, after the sub page loading is completed and the interaction event is monitored, the real-time monitoring task can be terminated, the real-time monitoring task can be continued, and the monitoring can be performed at intervals, which is not particularly limited in the disclosure.
For example, after the loading of the first sub page is completed, starting a real-time monitoring task, and if an interaction event exists on the parent page, terminating the monitoring task; after the second sub page is loaded, a new real-time monitoring task is started, and if the interaction event exists on the parent page, the monitoring task is terminated.
Wherein, the method of addventlistener native provided by javascript can be used for creating a listening task, for example, the listening task is created: (window. Parent. AddEventListener ('click')).
In an exemplary embodiment of the present disclosure, the interaction event includes one or more of a click operation of a user on a parent page, a move mouse operation, a scroll mouse operation.
The clicking operation may be a triggering operation of a user on the display interface, where the triggering operation includes a touch triggering operation or a non-touch triggering operation, where the non-touch triggering operation may be a hover touch operation, and hover touch is a technology that may utilize capacitive touch sensing or detect that an operation medium is operated in front of a screen of the touch terminal through a sensor (such as a photosensitive sensor or an ultrasonic sensor) carried in the touch terminal. Of course, the non-contact triggering operation may be other non-contact operation, so that the player can realize the interaction function with the terminal device without contacting the terminal device, and the non-contact operation mode is not particularly limited in the disclosure. In addition, the operation medium for triggering the operation may be a finger of a user, a stylus, a mouse, or the like, which is not particularly limited in this disclosure.
In an exemplary embodiment of the present disclosure, in response to a triggering operation by a user for a child page identification in a parent page, the child page is loaded according to the child page identification.
Specifically, page information corresponding to the sub page identification can be obtained from the database according to the sub page identification. The sub-pages may be loaded based on a nesting frame such that the sub-pages are nested with page information corresponding to the sub-pages displayed in the parent page, which may include text content, picture content, etc. displayed on the sub-pages.
One or more sub page identifiers corresponding to the parent page can be preconfigured, page information corresponding to each sub page is configured, and the mapping relation between the parent page and the sub page identifiers and page information corresponding to each sub page identifier are stored in a database.
It should be noted that the child page identifier may be one or more identifiers of characters, pictures, etc. displayed on the parent page, and one child page may correspond to one or more child page identifiers on the parent page. For example, a child page may simultaneously correspond to a certain picture and text on a parent page, and a user may load the child page by clicking the picture on the parent page, or may load the child page by clicking the text on the parent page, where the number of child page identifiers corresponding to the child page in the disclosure is not specifically limited.
Alternatively, the nested frame may be a floating frame (iframe), which is a tag in HTML that floats outside of the parent page while the parent page is displayed. Of course, the nesting framework may be other frameworks as long as nesting between the parent page and the child page can be achieved, and the disclosure is not particularly limited.
In step S120, when the terminal device monitors that the interaction event exists on the parent page, a time synchronization instruction is sent to the child page, and the child page synchronizes the time information according to the time synchronization instruction.
In an exemplary embodiment of the present disclosure, the listening task corresponds to a callback task, and when it is monitored that an interaction event exists, the callback event may be invoked to execute the time synchronization task. For example, the callback tasks may include callback functions: window.
For example, a corresponding first sub-page in the parent page is loaded, and when loading of the first sub-page is completed, the terminal device monitors a monitoring event on the parent page and sets a callback event for the first sub-page. When the interaction event exists on the parent page, calling a callback event of the first sub-page, and sending a time synchronization instruction to the first sub-page through the callback event so that the first sub-page synchronizes the time information on the first sub-page according to the time synchronization instruction. If a plurality of loaded sub-pages exist, the interaction event triggers the event callback of each sub-page at the same time, so as to send a time synchronization instruction to each sub-page through the callback event. The snoop event may also be a snoop task loading the completed child page to the parent page.
In the exemplary embodiment of the present disclosure, since there is a problem of a load time difference in a plurality of sub pages, there is a possibility that when time information synchronization is performed for the first time, an individual sub page has not yet been loaded. Therefore, the preset time interval may be preset, and the time information synchronization may be performed once at preset time intervals. That is, the time synchronization instruction is sent to each sub page that is successfully loaded once every preset time interval.
Specifically, fig. 3 shows a schematic flow chart of a method for sending a time synchronization instruction, and as shown in fig. 3, the flow at least includes steps S310 to S320, which are described in detail as follows:
in step S310, the last reset time stamp is acquired, and a reset time interval is determined according to the last reset time stamp and the current system time.
In an exemplary embodiment of the present disclosure, the last reset timestamp is a timestamp of a time synchronization instruction that the terminal device last sent to the sub-page. After the last reset time stamp is obtained, the last reset time stamp is subtracted from the current system time to obtain a reset time interval.
In step S320, when the reset time interval is equal to or greater than the preset time interval, a time synchronization instruction is sent to the sub-page.
In an exemplary embodiment of the present disclosure, it is determined whether the reset time interval is equal to or greater than a preset time interval; and if the reset time interval is greater than or equal to the preset time interval, sending a time synchronization instruction to each sub-page which is already loaded.
The preset time interval may be set according to an actual scenario, for example, the preset time interval may be set to 1 minute, and the preset time interval may also be set to 10 seconds, which is not specifically limited in the present disclosure.
In an exemplary embodiment of the present disclosure, synchronizing time information by a sub-page according to a time synchronization instruction includes: and the sub page receives a time information synchronization instruction, acquires the current system time and synchronizes the time information according to the current system time.
The time synchronization instruction may include a page identifier of the sub page, and may further include instruction information. For example, the instruction information may include information such as countdown time synchronization, system time synchronization, and the like. If the instruction information is countdown time synchronization, synchronizing the countdown information displayed on the sub page; if the instruction information is the system time synchronization, synchronizing the system time information displayed on the sub-page.
Specifically, if the instruction information is the system time synchronization, the current system time may be acquired, and the current system time is displayed on the sub-page, so as to achieve synchronization of the system time information displayed on the sub-page.
In addition, if the instruction information is countdown time synchronization, a countdown reset may be performed, and the countdown reset may include: deleting the corresponding countdown timer of the sub-page, creating a new countdown timer, and synchronizing the countdown information on the sub-page according to the new countdown timer.
In an exemplary embodiment of the present disclosure, synchronizing time information according to a current system time includes: and deleting the current timing task, and creating a new timing task according to the current system time and the timing ending time stamp.
Specifically, the countdown timer corresponding to the sub-page may be deleted, and a new countdown timer may be created with the current system time as the start time and the timer end timestamp as the end time. Or updating the current countdown timer corresponding to the sub-page, and updating the current countdown timer by the current system time and the time ending time stamp.
In addition, the current timing task may be a countdown timer or a countup timer, and the countup timer is updated according to the current system time and the timer end time stamp.
Wherein, when loading the sub-page, the terminal device or the parent page sends a timing end timestamp to the sub-page. The end of timing timestamp may be a certain time, for example, 2021, 6, 1, 24:00, and the end of timing timestamp is not particularly limited in this disclosure.
In an exemplary embodiment of the present disclosure, the timing time information on the sub-page is updated according to the new timing task, and the timing time information is displayed on the display interface of the sub-page.
Specifically, a new timing task corresponds to a timer, timing time information on the sub-page is updated according to the time of the timer, and the time information corresponding to the timer is displayed on a display interface of the sub-page, and the time information corresponding to the timer is the timing time information on the sub-page.
Fig. 4 is a schematic flow chart of an information synchronization method according to this embodiment, as shown in fig. 4, where the flow includes at least steps S410 to S450, and the following details are described:
in step S410, responding to a triggering operation of a user on a parent page, and loading a child page on a display interface of a terminal device according to a page identifier of the child page corresponding to the triggering operation;
according to the triggering position of the triggering operation, the child page identification of the child page corresponding to the triggering operation can be obtained, and the child page identification of the child page corresponds to the display position of the child page identification in the parent page one by one. The trigger position of the trigger operation may be matched with the display position of the child page identifier of the child page in the parent page, and if the trigger position is matched with the display position of the child page identifier of a certain child page in the parent page, it may be determined that the trigger operation corresponds to the child page identifier of the child page.
In addition, the page information corresponding to the sub page identification is obtained in the database according to the sub page identification of the sub page, and the sub page is displayed on the parent page according to the page information.
In step S420, when loading of the sub page corresponding to the parent page is completed, a monitor task is configured for the sub page, where the monitor task is used to monitor the interaction event on the parent page;
after loading of the sub page corresponding to the parent page is completed, the parent page and the sub page are displayed on a display interface of the terminal device in a nested manner.
In addition, a timer end timestamp may be sent to the sub-page when the sub-page load is performed.
In step S430, when the monitor task monitors that the parent page has an interaction event, calling a callback event of the child page, and sending a time synchronization instruction to the child page through the callback event;
when the interaction event of the parent page is monitored, a time synchronization instruction can be sent to all loaded child pages at each preset time interval.
In step S440, the sub-page receives the time synchronization instruction, deletes the current countdown timer corresponding to the sub-page, and creates a new countdown timer according to the current system time and the timer ending time stamp;
in step S450, the count-down timer is acquired, and the count-down time information is displayed in the display area corresponding to the sub-page.
Those skilled in the art will appreciate that all or part of the steps implementing the above embodiments are implemented as a computer program executed by a CPU. When executed by a CPU, performs the functions defined by the above-described method provided by the present invention. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic disk or an optical disk, etc.
Furthermore, it should be noted that the above-described figures are merely illustrative of the processes involved in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
The following describes embodiments of an apparatus of the present disclosure that may be used to perform the above-described information synchronization methods of the present disclosure. For details not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the embodiments of the information synchronization method described above in the present disclosure.
Fig. 5 schematically illustrates a block diagram of an information synchronization apparatus according to one embodiment of the present disclosure.
Referring to fig. 5, an information synchronization apparatus 500 according to an embodiment of the present disclosure, the information synchronization apparatus 500 includes: a listening module 501 and a reset module 502. Specifically:
the monitoring module 501 is configured to monitor an interaction event of a parent page by using a terminal device when loading of a child page corresponding to the parent page is completed;
and the reset module 502 is configured to send a time synchronization instruction to the sub-page when the terminal device monitors that the interaction event exists on the parent page, where the sub-page synchronizes the time information according to the time synchronization instruction.
In an exemplary embodiment of the present disclosure, the reset module 501 may be further configured to receive a time information synchronization instruction from a sub-page, obtain a current system time, and synchronize time information according to the current system time.
In an exemplary embodiment of the present disclosure, the reset module 501 may also be used to delete a current timing task, creating a new timing task based on the current system time and the timing end timestamp.
In an exemplary embodiment of the present disclosure, the reset module 501 may be further configured to obtain a last reset timestamp, and determine a reset time interval according to the last reset timestamp and a current system time; and when the reset time interval is greater than or equal to the preset time interval, sending a time synchronization instruction to the sub page.
In an exemplary embodiment of the present disclosure, the information synchronization apparatus 500 further includes a display module (not shown in the figure) for updating the timing information on the sub-page according to the new timing task and displaying the timing information on the display interface of the sub-page.
In an exemplary embodiment of the present disclosure, the information synchronization apparatus 500 further includes a loading module (not shown in the figure) for loading the sub-page according to the sub-page identification in response to a triggering operation of the user for the sub-page identification in the parent page.
In an exemplary embodiment of the present disclosure, the loading module may be further configured to send a timing end timestamp to the sub-page when the sub-page is loaded.
The specific details of each information synchronization device are described in detail in the corresponding information synchronization method, so that they will not be described here again.
It should be noted that although in the above detailed description several modules or units of a device for performing are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 6, the electronic device 600 is in the form of a general purpose computing device. Components of electronic device 600 may include, but are not limited to: the at least one processing unit 610, the at least one memory unit 620, a bus 630 connecting the different system components (including the memory unit 620 and the processing unit 610), a display unit 640.
Wherein the storage unit stores program code that is executable by the processing unit 610 such that the processing unit 610 performs steps according to various exemplary embodiments of the present invention described in the above-described "exemplary methods" section of the present specification. For example, the processing unit 610 may execute step S110 shown in fig. 1, where when loading of the sub page corresponding to the parent page is completed, the terminal device listens for an interaction event on the parent page, where the parent page and the sub page are simultaneously displayed on the display interface of the terminal device; in step S120, when the terminal device monitors that the interaction event exists on the parent page, a time synchronization instruction is sent to the child page, and the child page synchronizes the time information according to the time synchronization instruction.
The storage unit 620 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 6201 and/or cache memory unit 6202, and may further include Read Only Memory (ROM) 6203.
The storage unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 630 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 800 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a viewer to interact with the electronic device 600, and/or any device (e.g., router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 650. Also, electronic device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 660. As shown, network adapter 660 communicates with other modules of electronic device 600 over bus 630. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 600, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
Referring to fig. 7, a program product 700 for implementing the above-described method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Furthermore, the above-described drawings are only schematic illustrations of processes included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (9)

1. An information synchronization method, comprising:
when loading of the sub-pages corresponding to the parent page is completed, the terminal equipment monitors interaction events on the parent page, and sets callback events on each sub-page; the parent page and the child page are simultaneously displayed on a display interface of the terminal equipment, and the interaction event comprises one or more of clicking operation, moving mouse operation and scrolling mouse operation of a user on the parent page;
when the terminal equipment monitors that the interaction event exists on the parent page, triggering the callback event of each sub page to send a time synchronization instruction to the sub page, receiving the time synchronization instruction by the sub page, acquiring current system time, and synchronizing time information according to the current system time.
2. The information synchronization method according to claim 1, wherein synchronizing time information according to the current system time includes:
and deleting the current timing task, and creating a new timing task according to the current system time and the timing ending time stamp.
3. The information synchronization method according to claim 2, characterized in that the method further comprises:
and updating the timing time information on the sub-page according to the new timing task, and displaying the timing time information on a display interface of the sub-page.
4. The information synchronization method according to claim 1, wherein transmitting a time synchronization instruction to the sub page includes:
acquiring a last reset time stamp, and determining a reset time interval according to the last reset time stamp and the current system time;
and when the reset time interval is greater than or equal to a preset time interval, sending the time synchronization instruction to the sub page.
5. The information synchronization method according to claim 1, characterized in that the method further comprises:
and when the sub page is loaded, sending a timing ending time stamp to the sub page.
6. The information synchronization method according to claim 1, characterized in that the method further comprises:
and responding to triggering operation of a user for the sub page identification in the parent page, and loading the sub page according to the sub page identification.
7. An information synchronization apparatus, comprising:
the terminal equipment monitors interaction events of the parent page and sets callback events on each child page when loading of the child page corresponding to the parent page is completed; wherein the interaction event comprises one or more of clicking operation, moving mouse operation and scrolling mouse operation of a user on the parent page;
and the reset module is used for triggering the callback event of each sub page to send a time synchronization instruction to the sub page when the terminal equipment monitors that the interaction event exists on the parent page, and the sub page receives the time synchronization instruction, acquires the current system time and synchronizes time information according to the current system time.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the information synchronization method according to any one of claims 1 to 6.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which when executed by the one or more processors cause the one or more processors to implement the information synchronization method of any one of claims 1 to 6.
CN202110624072.3A 2021-06-04 2021-06-04 Information synchronization method and device, computer readable storage medium and electronic equipment Active CN113312119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110624072.3A CN113312119B (en) 2021-06-04 2021-06-04 Information synchronization method and device, computer readable storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110624072.3A CN113312119B (en) 2021-06-04 2021-06-04 Information synchronization method and device, computer readable storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113312119A CN113312119A (en) 2021-08-27
CN113312119B true CN113312119B (en) 2024-03-15

Family

ID=77377510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110624072.3A Active CN113312119B (en) 2021-06-04 2021-06-04 Information synchronization method and device, computer readable storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113312119B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114222148B (en) * 2021-11-03 2024-03-01 广州方硅信息技术有限公司 Countdown control method and device, storage medium and computer equipment
CN115474083B (en) * 2022-11-02 2023-03-14 灵长智能科技(杭州)有限公司 Multi-channel audio and video synchronous live broadcast method and system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014168936A1 (en) * 2013-04-10 2014-10-16 Ho Lap-Wah Lawrence Method and apparatus for processing composite web transactions
CN108459888A (en) * 2018-01-08 2018-08-28 平安科技(深圳)有限公司 multi-page switching method, device, terminal device and storage medium
CN109471604A (en) * 2018-10-11 2019-03-15 上海联影医疗科技有限公司 Show page synchronization switching method, device, storage medium and equipment
CN109840114A (en) * 2017-11-24 2019-06-04 阿里巴巴集团控股有限公司 Page processing method and mobile terminal
WO2019120240A1 (en) * 2017-12-20 2019-06-27 清华大学 Column-based storage method and system for timing data and query method and system for timing data
CN110166788A (en) * 2018-08-02 2019-08-23 腾讯科技(深圳)有限公司 Synchronizing information playback method, device and storage medium
WO2019193407A1 (en) * 2018-04-01 2019-10-10 Yogesh Chunilal Rathod Presenting structured contents with search results, generating feeds & establishing communication based on search activities and enabling search result item associated user actions and reactions
CN110704782A (en) * 2019-09-30 2020-01-17 北京字节跳动网络技术有限公司 Page response method and device, electronic equipment and storage medium
CN111405304A (en) * 2020-03-10 2020-07-10 腾讯科技(深圳)有限公司 Anchor interaction method and device, computer equipment and storage medium
CN112182442A (en) * 2020-09-28 2021-01-05 湖南亚信软件有限公司 Page processing method and device, electronic equipment and computer readable storage medium
CN112199263A (en) * 2020-09-30 2021-01-08 北京字节跳动网络技术有限公司 Method, device, equipment and medium for recording page

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160162444A1 (en) * 2014-12-06 2016-06-09 Falcon Client Services, LLC System and Method for Adding Visitor Content to a Page

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014168936A1 (en) * 2013-04-10 2014-10-16 Ho Lap-Wah Lawrence Method and apparatus for processing composite web transactions
CN109840114A (en) * 2017-11-24 2019-06-04 阿里巴巴集团控股有限公司 Page processing method and mobile terminal
WO2019120240A1 (en) * 2017-12-20 2019-06-27 清华大学 Column-based storage method and system for timing data and query method and system for timing data
CN108459888A (en) * 2018-01-08 2018-08-28 平安科技(深圳)有限公司 multi-page switching method, device, terminal device and storage medium
WO2019193407A1 (en) * 2018-04-01 2019-10-10 Yogesh Chunilal Rathod Presenting structured contents with search results, generating feeds & establishing communication based on search activities and enabling search result item associated user actions and reactions
CN110166788A (en) * 2018-08-02 2019-08-23 腾讯科技(深圳)有限公司 Synchronizing information playback method, device and storage medium
CN109471604A (en) * 2018-10-11 2019-03-15 上海联影医疗科技有限公司 Show page synchronization switching method, device, storage medium and equipment
CN110704782A (en) * 2019-09-30 2020-01-17 北京字节跳动网络技术有限公司 Page response method and device, electronic equipment and storage medium
CN111405304A (en) * 2020-03-10 2020-07-10 腾讯科技(深圳)有限公司 Anchor interaction method and device, computer equipment and storage medium
CN112182442A (en) * 2020-09-28 2021-01-05 湖南亚信软件有限公司 Page processing method and device, electronic equipment and computer readable storage medium
CN112199263A (en) * 2020-09-30 2021-01-08 北京字节跳动网络技术有限公司 Method, device, equipment and medium for recording page

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
Implementation of SPA in Radiology Information System;Suela Maxhelaku等;2020 IEEE Conference on Evolving and Adaptive Intelligent Systems (EAIS);20200623;第1-5页 *
Increasing Buffer-Locality for Multiple Index Based Scans through Intelligent Placement and Index Scan Speed Control;Christian A. Lang等;Proceedings of the 33rd international conference on Very large data bases;20070923;第1298-1309页 *
企业信息传播平台"同事圈"的设计与实现;汪伟;中国优秀硕士学位论文全文数据库 信息科技辑;20180115(第1期);I138-602 *
基于大数据的网运前台系统架构设计与优化;高智衡;移动通信;20171130;第41卷(第22期);第84-88页 *
基于微服务架构的铁路货运基础字典统一运维应用系统的设计与实现;吴志伟 等;铁路计算机应用;20200325;第29卷(第3期);第19-23页 *

Also Published As

Publication number Publication date
CN113312119A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN113312119B (en) Information synchronization method and device, computer readable storage medium and electronic equipment
US20190354408A1 (en) Method for Preloading Application, Storage Medium, and Terminal
CN103345405A (en) Application program starting method and device and client
CN109446025B (en) Operation behavior playback method and device, electronic equipment and readable medium
CN111400625B (en) Page processing method and device, electronic equipment and computer readable storage medium
WO2018117589A1 (en) Electronic device and method for displaying web page using the same
CN111813641A (en) Method, device, medium and equipment for collecting crash information
CN114610197A (en) Display method and terminal during application quitting
CN110619100A (en) Method and apparatus for acquiring data
CN111813465B (en) Information acquisition method, device, medium and equipment
CN113505302A (en) Method, device and system for supporting dynamic acquisition of buried point data and electronic equipment
CN111259022A (en) Information synchronization method, synchronization system, computer equipment and medium
CN110865846B (en) Application management method, device, terminal, system and storage medium
CN111723309B (en) Method and device for web page searching
CN109492163B (en) List display recording method and device, terminal equipment and storage medium
CN111125591B (en) Method, device, terminal and storage medium for counting exposure information
CN109165372B (en) Webpage loading method, device, equipment and storage medium
US20240073488A1 (en) Live video processing method and apparatus, device and medium
US10282395B2 (en) Handling timer-based resizing events based on activity detection
CN112507259A (en) Webpage loading method and device, electronic equipment and storage medium
US10275525B2 (en) Method and system for mining trends around trending terms
CN110717126A (en) Page browsing method and device, electronic equipment and computer readable storage medium
WO2022095932A1 (en) Livestreaming room page jumping method and apparatus, livestreaming room page returning method and apparatus, and electronic device
CN111767111B (en) Page data processing method and device, electronic equipment and storage medium
CN113806650A (en) Webpage application processing method and device, storage medium 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