A method, device, equipment and medium for transmitting page data
By receiving and synchronously executing browser input events and interaction data, the browser's input behavior can be reproduced, solving the problem of inaccurate browser optimization analysis and achieving more accurate browser optimization and privacy protection.
Patent Information
- Application Number
- CN202311691969.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2043-12-11
AI Technical Summary
In existing technologies, when browsers encounter problems, the saved static pages can only display the final processing result of input events, but cannot display the processing process, leading to inaccurate browser optimization analysis.
By receiving and synchronously executing multiple input events and interaction data, and cyclically executing them according to the trigger time of the input events, the browser's input operation behavior is reproduced, including de-identifying the interaction data to protect user privacy.
It improves the accuracy of browser problem analysis, ensuring the effectiveness of browser optimization and user privacy protection.
Smart Images

Figure CN117851196B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and medium for transmitting page data. Background Art
[0002] A browser is an application used to retrieve, display, and transmit global wide area network information resources. With the continuous development of computer technology and browser technology, there are more and more browser products. In order to provide users with a better user experience and continuously optimize their own browser products, more and more browser products provide a service for feedback on browser problems in addition to providing users with main business process services. When a problem occurs in the browser (such as incompatibility and adaptation issues), users can use the browser's feedback service to feedback the browser manufacturer about the problem.
[0003] In the current prior art solutions, when a problem occurs in a browser, one or more pages with the problem are often saved, and the saved pages are fed back to the browser manufacturer. The browser manufacturer can manually analyze the received pages and optimize the browser based on the analysis results. However, in the prior art solutions, the saved pages are usually static pages, which can only display the final processing results of the input events, but cannot display the processing process of the input events. Therefore, the browser manufacturer cannot obtain the complete process of input event processing based on the saved pages, which leads to inaccurate analysis of the page and inability to accurately optimize the browser. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, device and medium for transmitting page data, which are used to restore the complete process of the browser processing input events, thereby improving the accuracy of analyzing the page and accurately optimizing the browser problems.
[0005] In a first aspect, the present application provides a method for transmitting page data. The method includes: a first device receives multiple input events and interaction data from a second device, the multiple input events and interaction data are obtained according to multiple input operation behaviors of a first browser, and the interaction data is data of the first browser interacting with a server corresponding to the input operation behaviors. The multiple input events are executed cyclically according to the triggering time of the input events. The multiple input events and interaction data are executed synchronously to restore the multiple input operation behaviors of the first browser.
[0006] By adopting this method, the second device can record multiple input operation behaviors of the first browser according to the input events and the interaction data, and send the input events and the interaction data to the first device. The second device can accurately restore the multiple input operation behaviors of the first browser according to the input events and the interaction data, thereby improving the accuracy of analyzing the page and accurately optimizing the browser problem.
[0007] In an achievable embodiment, receiving interaction data from a second device includes: receiving desensitized interaction data from the second device, where the desensitized interaction data is obtained by desensitizing sensitive information of the interaction data.
[0008] Through this embodiment, the second device can perform desensitization processing on the interaction data before sending the interaction data to the first device, thereby avoiding leakage of user privacy data.
[0009] In an implementable embodiment, the event types include mouse events, keyboard events, timer events, operating system events, and user-defined events.
[0010] Through this embodiment, different types of event types are set, and the input operation information of the first browser is divided into different event types, which can improve the efficiency and accuracy of subsequent restoration of the input operation behavior.
[0011] In an achievable embodiment, multiple input events and interaction data are synchronously executed to restore multiple input operation behaviors of the first browser, including: configuring multiple timestamps for the interaction data according to data information of the interaction data and multiple input events, wherein the multiple timestamps correspond to the triggering time of the input events. According to the correspondence between the timestamps and the triggering time of the input events, the multiple input events and interaction data are synchronously executed to restore the multiple input operation behaviors of the first browser.
[0012] Through this embodiment, multiple timestamps are configured for the interaction data according to the correspondence between the interaction data and the input event, and the input event and the interaction data are synchronously executed according to the timestamp of the interaction data and the trigger time of the input event, thereby accurately restoring multiple input operation behaviors of the first browser.
[0013] In a second aspect, the present application provides a device for transmitting page data. The device includes:
[0014] The communication module is used to receive multiple input events and interaction data, wherein the multiple input events and interaction data are obtained according to multiple input operation behaviors of the first browser, and the interaction data is data of the first browser interacting with the server corresponding to the input operation behaviors. The processing module is used to cyclically execute the multiple input events according to the triggering time of the input events. The processing module is also used to synchronously execute the multiple input events and interaction data to restore the multiple input operation behaviors of the first browser.
[0015] In an achievable embodiment, the communication module is specifically used to: receive desensitized interaction data, where the desensitized interaction data is obtained by desensitizing sensitive information of the interaction data.
[0016] In an implementable embodiment, the event types include mouse events, keyboard events, timer events, operating system events, and user-defined events.
[0017] In an achievable embodiment, the processing module is specifically used to: configure multiple timestamps for the interaction data according to the data information of the interaction data and the multiple input events, wherein the multiple timestamps correspond to the triggering time of the input events. According to the corresponding relationship between the timestamps and the triggering time of the input events, the multiple input events and the interaction data are synchronously executed to restore the multiple input operation behaviors of the first browser.
[0018] In a third aspect, the present application provides an electronic device, including:
[0019] A memory for storing program instructions;
[0020] The processor is used to call the program instructions stored in the memory, and execute the steps included in any one of the methods in the first aspect according to the obtained program instructions.
[0021] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes any one of the methods described in the first aspect.
[0022] In a fifth aspect, the present application provides a computer program product, comprising: a computer program code, when the computer program code is run on a computer, the computer executes any one of the methods described in the first aspect.
[0023] The technical effects brought about by the second to fifth aspects and any one of their designs can refer to the technical effects brought about by the corresponding designs in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1A schematic diagram of a flow chart of a method for transmitting page data provided in an embodiment of the present application;
[0025] Figure 2 A schematic diagram of the structure of a device for transmitting page data provided in an embodiment of the present application;
[0026] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0028] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean multiple, for example, two, three or more, and the embodiments of the present application are not limited.
[0029] In the technical solution of this application, the collection, dissemination, and use of data are in compliance with the requirements of relevant national laws and regulations.
[0030] Before introducing the page data transmission method provided in the embodiment of the present application, in order to facilitate understanding, the technical background of the embodiment of the present application is first introduced in detail.
[0031] The service of feeding back browser problems usually manually analyzes the information fed back by users, and optimizes the browser product according to the analysis results, so as to improve the use experience of the browser. In the prior art solution, the web page includes a dynamic page written and generated by a hypertext preprocessor (PHP) or Java. In the dynamic page, the post method of the browser form can be used to transmit specific parameters to the website. The dynamic website processes the received parameters (e.g., queries the database according to the parameters), encapsulates the data processing results into a hypertext markup language (HTML) page, and sends the HTML page (i.e., the dynamic page) to the browser.
[0032] Since dynamic pages are generated in real time by websites based on user input parameters (also known as input events), when dynamic pages are returned to the browser, they become static pages. The pages saved by users through the browser are static pages, which can only display the final processing results of the input events, but not the processing process of the input events. Therefore, technicians cannot accurately analyze the pages, which leads to the problem of being unable to accurately optimize the browser.
[0033] In order to solve the above-mentioned defects, the embodiments of the present application provide a method, device, equipment and medium for transmitting page data, which are used to restore the complete process of the browser processing input events, thereby improving the accuracy of analyzing the page and accurately optimizing the browser problems.
[0034] In the present application, the method used includes: the first device can execute multiple input events cyclically according to the triggering time of multiple input events sent by the second device, and synchronize the multiple input events with the interaction data sent by the second device, so as to restore the input operation behavior of the first browser. The multiple input events and the interaction data are obtained according to the multiple input operation behaviors of the first browser, and the interaction data is the data of the first browser interacting with the server corresponding to the input operation behavior.
[0035] Understandably, the second device can record the multiple input operation behaviors of the first browser according to the input events and interaction data, and send the input events and interaction data to the first device. The second device can accurately restore the multiple input operation behaviors of the first browser according to the input events and interaction data, thereby improving the accuracy of analyzing the page and accurately optimizing the browser problem.
[0036] In the present application, the first device may be a restoring device for restoring monitored data, and the second device may be a monitoring device for monitoring data on a browser page.
[0037] In addition, the first device and the second device may be processing devices for executing the method described in the present application, or may be processing devices in a computer system for executing the method described in the present application, such as a processor or a processing module, etc., which is not specifically limited in the present application.
[0038] Figure 1 A schematic diagram of a method for transmitting page data provided by an embodiment of the present invention. Taking the first device and the second device as the execution subjects as an example, the process may include the following steps:
[0039] S101, the second device obtains a page data monitoring request.
[0040] Specifically, the user can trigger a page data monitoring request in the browser through an input device (such as a mouse, keyboard, touch screen, etc.). For example, the browser in the present application is configured with a page data monitoring function. When a problem occurs in the browser, the user can trigger the page data monitoring function through an input device, and the browser can send a page data monitoring request to the second device.
[0041] In addition, users can set different monitoring modes according to their own needs. For example, when a user performs secondary development on a browser, it is necessary to record the problems that occur in the browser in real time. Then, when the browser is opened, the browser can send a page data monitoring request to the second device. For another example, the user can set the start time of the page data monitoring function according to their own needs. When the preset start time is reached, the browser can send a page data monitoring request to the second device.
[0042] S102: The second device obtains corresponding multiple input events and interaction data according to multiple input operation behaviors of the first browser.
[0043] The input event includes an event type, an event identifier, and a trigger time. The interaction data is the data of the interaction between the first browser and the server corresponding to the input operation behavior.
[0044] Specifically, the second device may record at least the event type, event identifier, and trigger time of the input operation behavior according to the input operation behavior of the first browser, and combine the recorded contents to generate a corresponding input event.
[0045] In one or more embodiments, the event types include mouse events, keyboard events, timer events, operating system events, and user-defined events.
[0046] Specifically, a mouse event may be an input event corresponding to an operation such as clicking, dragging, or selecting a page by a user using a mouse. A mouse event may also be an input event corresponding to an operation such as touching, clicking, sliding, or selecting a page by a touch screen. Optionally, if the event type is a mouse event, the input event may further include mouse information. The mouse information includes the position information of the mouse and the mouse key value information. The position information of the mouse may be the coordinate point (x, y) of the mouse pointer on the browser page. x represents the horizontal coordinate of the mouse pointer on the browser page, and y represents the vertical coordinate of the mouse pointer on the browser page. The mouse key value information may be a left-button input (or a click operation of a touch screen) and / or a right-button input (or a long-press operation of a touch screen).
[0047] A keyboard event may be an input event corresponding to a user inputting an input operation in an input box of a page through a keyboard. A keyboard event may also be an input event corresponding to a user inputting an input operation in an input box of a page through a touch screen, such as inputting through a soft keyboard on a touch screen. Optionally, if the event type is a keyboard event, the input event may also include keyboard information. Among them, the keyboard information includes combination key information and keyboard key value information. The combination key information of the keyboard may indicate whether it is a combination key. For example, if the combination key information is 1, it indicates a combination key. If the combination key information is 0, it indicates a non-combination key. The keyboard key value information may be key information input through a keyboard, or it may be key information input through a software disk of a touch screen.
[0048] A timer event may be an input event corresponding to a timed task (such as timing to turn on and / or turn off a function) preset by a user. Optionally, if the event is a timer event, the input event may also include time interval information. The time interval information is used to indicate the interval time. For example, if the time interval information may be 1, and the time unit is hour, the interval time is 1 hour.
[0049] An operating system event may be an event type triggered by the operating system in response to an event input by the user. For example, a user may select a window of a web page with a mouse, and the operating system responds to the mouse event, thereby activating the window and deactivating other windows. For another example, a user may select a page element corresponding to a focus in a page with a mouse, and the operating system may respond to the mouse event, thereby activating the page element corresponding to the focus and deactivating other page elements corresponding to the focus in the page. The page element corresponding to the focus in the page may include page controls, function keys of the page, and text boxes in the page, etc.
[0050] A user-defined event can be an event type that a user customizes according to his or her needs. The event type does not belong to an existing event type. The user can set the name of the event type according to the event type. For example, the user can define the event of receiving a signal for terminating a program process as a process termination event, and the name of the event can be expressed as SIGUSR.
[0051] Based on this embodiment, different types of event types are set, and the input operation information of the browser is divided into different event types, which can improve the efficiency and accuracy of subsequent restoration of input operation behaviors.
[0052] The event identifier can be set according to the type of event. For example, the user first inputs a mouse event on the first browser page, and then inputs a keyboard event. Different event identifiers can be set for the mouse event and the keyboard event, respectively. The event identifier can also be set according to the interval time. For example, if the user inputs a certain type of event (such as a keyboard event) on the first browser for more than a set interval time (such as 2s), a new event identifier can be set for this type of event. In this way, different event identifiers are set for input operation behaviors of different event types, and / or multiple event identifiers are set for input operation behaviors according to the interval time, which can improve the efficiency and accuracy of subsequent restoration of input operation behaviors.
[0053] The trigger time may be the time point at which a certain input operation behavior is triggered. The trigger time may also be the time at which an event identifier is set for the input operation behavior.
[0054] The event identifier may include information about the trigger time. For example, the trigger time may be used as part of the event identifier. For example, the event identifier is composed of the trigger time and the identifier of the event type. For example, the event identifier may be 20230102030405A1. Among them, 2023 represents the year, 01 represents the month, 02 represents the day, 03 represents the hour, 04 represents the minute, 05 represents the second, and A1 represents the event type.
[0055] In addition, the second device can obtain the interactive data of the communication between the browser and the server according to the input operation behavior of the browser.
[0056] S103: The second device sends a plurality of input events and interaction data to the first device. Correspondingly, the first device receives the plurality of input events and interaction data from the second device.
[0057] Specifically, the second device may send input events and interaction data to the first device after receiving a request for sending input events and interaction data. The request for sending input events and interaction data may be triggered by the device of the second device itself. The request for sending input events and interaction data may also be a request for input events and interaction data sent by other devices to the second device. For example, after obtaining input events and interaction data, the second device generates a request for sending input events and interaction data. For another example, the browser has a function of feedbacking problems, and the user can send a request for sending input events and interaction data to the second device through the function of feedbacking problems in the browser.
[0058] The second device can send input events and interaction data to the first device at the same time, or send input events and interaction data to the first device separately. Correspondingly, the first device can receive input events and interaction data from the second device at the same time, or receive input events and interaction data from the second device separately.
[0059] In one or more embodiments, the second device sends multiple input events to the first device, including: the second device processes the multiple input events according to the triggering time of the multiple input events to obtain corresponding input event files. The second device sends the input event file to the first device. Correspondingly, the first device receives the input event file from the second device.
[0060] Specifically, before sending the input event to the first device, the second device may sort the multiple input events according to the sequence of their triggering times, and process the multiple input events to obtain an input event file. For example, the second device may encapsulate the multiple input events according to the sequence of their triggering times to obtain a file with a file suffix of "dat".
[0061] After obtaining the input event file, the second device may send the input event file to the first device.
[0062] Based on this embodiment, the second device can process multiple input events, obtain input event files, and send the input event files to the first device, thereby reducing the number of communications between the second device and the first device and improving data transmission efficiency.
[0063] It is understandable that in the present application, the second device may also send multiple input events to the first device in sequence. This application does not make any specific limitation.
[0064] In one or more embodiments, the second device sends interactive data to the first device, including: the second device can desensitize sensitive information of the interactive data to obtain desensitized interactive data. The sensitive information includes a network card identifier, a hard disk identifier, a device identifier, and user information. The second device can send the desensitized interactive data to the first device. Correspondingly, the first device receives the desensitized interactive data from the second device.
[0065] Specifically, after obtaining the interaction data corresponding to the input operation behavior, the second device can delete the sensitive information in the interaction data according to the user's needs, thereby obtaining desensitized interaction data, and send the desensitized interaction data to the first device. The sensitive information includes at least one of the network card identification, hard disk identification, device identification and user information.
[0066] Based on this embodiment, the second device can first desensitize the interaction data and then send the desensitized data to the first device, thereby improving the security of the user's privacy data.
[0067] S104: The first device cyclically executes the multiple input events according to the triggering times of the multiple input events.
[0068] Specifically, after receiving multiple input events, the first device can cyclically execute the multiple input events in the second browser according to the sequence of the triggering time of the multiple input events. The first browser and the second browser are browsers with the same functions, the first browser and the second browser can be the same browser, or the first browser and the second browser can be different browsers, which is not specifically limited in this application. For example, the first browser and the second browser can be the same browser on the same terminal. The first browser and the second browser can also be different browsers of the same browser manufacturer and the same version on different terminals.
[0069] Optionally, the present application also includes a browser event generator and an event receiving controller. The browser event generator can be used to process input events and obtain corresponding events. The event receiving controller can be used to receive events from the browser event generator and send corresponding events to the browser, so that the browser can execute the corresponding events.
[0070] After receiving the multiple input events, the first device can process the multiple input events through the browser event generator and the event receiving controller, so that the browser executes the multiple input events cyclically.
[0071] In one or more embodiments, if the second device sends an input event file to the first device, the first device may process the input event file to obtain files of multiple input events.
[0072] Exemplarily, if the file of the input event is a file with the suffix "dat", the browser event generator can read the file with the suffix "dat", obtain the event sequence in the file, and send the event sequence to the event receiving controller through the Post method. Correspondingly, the event receiving controller receives the event sequence from the browser event generator, and sends each event in the event sequence to the second browser kernel through the second browser kernel event interface (event source target), and the second browser kernel processes the event, so that the second browser executes each input event in the input event file.
[0073] S105: The first device synchronously executes the multiple input events and the interaction data to restore the multiple input operation behaviors of the first browser.
[0074] In one or more embodiments, the multiple input events and the interaction data are synchronously executed to restore the multiple input operation behaviors of the first browser, including: configuring multiple timestamps for the interaction data according to the data information of the interaction data and the multiple input events, wherein the multiple timestamps correspond to the triggering time of the input events. According to the correspondence between the timestamps and the triggering time of the input events, the multiple input events and the interaction data are synchronously executed to restore the multiple input operation behaviors of the first browser.
[0075] Specifically, after acquiring the interaction data, the first device may also configure a corresponding timestamp for the interaction data corresponding to the input event according to the triggering time of the input event. That is, the timestamp configured for the interaction data has a corresponding relationship with the triggering time of the input event. The first device may execute the input event in the second browser and execute the interaction data in the server corresponding to the second browser according to the corresponding relationship between the timestamp of the interaction data and the triggering time of the input event, thereby restoring multiple input operation behaviors of the first browser on the second browser.
[0076] Exemplarily, the first device can obtain each input event in the event sequence through the browser event generator and the event receiving controller. The first device can obtain the corresponding trigger time according to a certain input event, and synchronously execute the input event and the interaction data according to the trigger time of the input event and the timestamp of the interaction data corresponding to the input event, so as to restore the input operation behavior on the first browser on the second browser.
[0077] In addition, in the present application, if the first browser and the second browser are not the same browser, that is, the first browser and the second browser are browsers on different terminal devices, then when the first device processes the interactive data, it is also necessary to change the source address and the target address of the code stream in the interactive data. That is, according to the address of the second browser and the address of the server corresponding to the second browser, the source address and the target address of the code stream in the interactive data are changed, so that the second browser can completely simulate the first browser, thereby avoiding the interactive data from being unable to execute normally due to different configuration environments of the browsers.
[0078] Based on the same technical concept, on the basis of the above embodiments, in the embodiment of the present application, a transmission device for page data is provided. Figure 2 A schematic diagram of a structure of a transmission device for page data provided in some embodiments of the present application. Figure 2 As shown, the device comprises:
[0079] The communication module 201 is used to receive multiple input events and interaction data, where the multiple input events and interaction data are obtained according to multiple input operation behaviors of the first browser, and the interaction data is data of the first browser interacting with the server corresponding to the input operation behaviors. The processing module 202 is used to cyclically execute multiple input events according to the triggering time of the input events. The processing module 202 is also used to synchronously execute the multiple input events and interaction data to restore the multiple input operation behaviors of the first browser.
[0080] In an achievable embodiment, the communication module 201 is specifically used to: receive desensitized interaction data, where the desensitized interaction data is obtained by desensitizing sensitive information of the interaction data.
[0081] In an implementable embodiment, the event types include mouse events, keyboard events, timer events, operating system events, and user-defined events.
[0082] In an achievable embodiment, the processing module 202 is specifically used to: configure multiple timestamps for the interaction data according to the data information of the interaction data and the multiple input events, wherein the multiple timestamps correspond to the triggering time of the input events. According to the corresponding relationship between the timestamps and the triggering time of the input events, the multiple input events and the interaction data are synchronously executed to restore the multiple input operation behaviors of the first browser.
[0083] Based on the same inventive concept, an embodiment of the present application provides an electronic device, which can realize the functions of the device discussed above. Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown.
[0084] The electronic device in the embodiment of the present application may include a processor 301. The processor 301 is the control center of the device, and various interfaces and lines can be used to connect various parts of the device, by running or executing instructions stored in the memory 303 and calling data stored in the memory 303. Optionally, the processor 301 may include one or more processing units, and the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 301. In some embodiments, the processor 301 and the memory 303 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.
[0085] The processor 301 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The method steps disclosed in the embodiments of the present application may be directly executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0086] In the embodiment of the present application, the memory 303 stores instructions that can be executed by at least one processor 301. The at least one processor 301 can be used to execute the method steps disclosed in the embodiment of the present application by executing the instructions stored in the memory 303.
[0087] The memory 303 is a non-volatile computer-readable storage medium, which can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 303 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 303 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 303 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0088] In the embodiment of the present application, the device may further include a communication interface 302 , through which the electronic device may transmit data.
[0089] Optional, can be Figure 3 The processor 301 (or the processor 301 and the communication interface 302) implements Figure 2 The processing module 202 and / or the communication module 201 shown, that is, the actions of the processing module 202 and / or the communication module 201 can be executed by the processor 301 (or the processor 301 and the communication interface 302).
[0090] Based on the same inventive concept, the embodiment of the present application also provides a computer-readable storage medium, which may store instructions. When the instructions are executed on a computer, the computer executes the operation steps provided in the above method embodiment. The computer-readable storage medium may be Figure 3 The memory 303 is shown.
[0091] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0092] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable page data transmission device to produce a machine, so that the instructions executed by the processor of the computer or other programmable page data transmission device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0093] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable page data transmission device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0094] These computer program instructions may also be loaded onto a computer or other programmable data transmission device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0095] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for transmitting page data, characterized in that: The method comprises: The first device receives a plurality of input events and interaction data from the second device, wherein the plurality of input events and the interaction data are obtained according to a plurality of input operation behaviors of the first browser, and the interaction data is data of the interaction between the first browser and the server corresponding to the input operation behaviors; Loopingly executing the multiple input events according to the triggering time of the input events; Synchronously executing the multiple input events and the interaction data to restore multiple input operation behaviors of the first browser; The step of synchronously executing the multiple input events and the interactive data to restore the multiple input operation behaviors of the first browser includes: According to the data information of the interaction data and the multiple input events, configuring multiple timestamps for the interaction data, the multiple timestamps corresponding to the triggering time of the input events; According to the correspondence between the timestamp and the triggering time of the input event, the input event is executed in the second browser and the interaction data is executed in the server corresponding to the second browser to restore multiple input operation behaviors of the first browser; The step of cyclically executing the multiple input events according to the triggering time of the input events comprises: receiving a file of input events from a second device, wherein the file of input events includes a plurality of input events and is a file with a suffix of "dat"; Read the input event file through the browser event generator, obtain the event sequence in the input event file, and send the event sequence to the receiving controller through the Post method; The receiving controller sends the plurality of input events in the event sequence to the second browser kernel through the second browser kernel event interface; The plurality of input events are executed in a loop in the second browser according to the event sequence.
2. The method according to claim 1, characterized in that The receiving interaction data from the second device includes: Desensitized interaction data is received from the second device, where the desensitized interaction data is obtained by desensitizing sensitive information of the interaction data.
3. The method according to claim 1, characterized in that The types of input events include mouse events, keyboard events, timer events, operating system events and user-defined events.
4. A device for transmitting page data, characterized in that: The device comprises: a communication module, configured to receive a plurality of input events and interaction data, wherein the plurality of input events and the interaction data are obtained according to a plurality of input operation behaviors of the first browser, and the interaction data are data of the interaction between the first browser and the server corresponding to the input operation behaviors; A processing module, configured to cyclically execute the multiple input events according to the triggering time of the input events; The processing module is further used to synchronously execute the multiple input events and the interaction data to restore the multiple input operation behaviors of the first browser; The multiple input events and the interactive data are synchronously executed to restore multiple input operation behaviors of the first browser, and the processing module is specifically used for: According to the data information of the interaction data and the multiple input events, configuring multiple timestamps for the interaction data, the multiple timestamps corresponding to the triggering time of the input events; According to the correspondence between the timestamp and the triggering time of the input event, the input event is executed in the second browser and the interaction data is executed in the server corresponding to the second browser to restore multiple input operation behaviors of the first browser; The multiple input events are cyclically executed according to the triggering time of the input events, and the communication module is specifically used to: receiving a file of input events from a second device, wherein the file of input events includes a plurality of input events and is a file with a suffix of "dat"; The processing module is specifically used for: Read the input event file through the browser event generator, obtain the event sequence in the input event file, and send the event sequence to the receiving controller through the Post method; The receiving controller sends the plurality of input events in the event sequence to the second browser kernel through the second browser kernel event interface; The plurality of input events are executed in a loop in the second browser according to the event sequence.
5. The device according to claim 4, characterized in that The communication module is specifically used for: Desensitized interaction data is received, where the desensitized interaction data is obtained by desensitizing sensitive information of the interaction data.
6. The device according to claim 4, characterized in that The types of input events include mouse events, keyboard events, timer events, operating system events and user-defined events.
7. An electronic device, characterized in that: include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the steps included in any one of the methods of claims 1-3 according to the obtained program instructions.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method according to any one of claims 1 to 3.
