CN111930367A - Data processing method, device and equipment - Google Patents

Data processing method, device and equipment Download PDF

Info

Publication number
CN111930367A
CN111930367A CN201910400230.XA CN201910400230A CN111930367A CN 111930367 A CN111930367 A CN 111930367A CN 201910400230 A CN201910400230 A CN 201910400230A CN 111930367 A CN111930367 A CN 111930367A
Authority
CN
China
Prior art keywords
editor
data
editing
communication server
local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910400230.XA
Other languages
Chinese (zh)
Other versions
CN111930367B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910400230.XA priority Critical patent/CN111930367B/en
Publication of CN111930367A publication Critical patent/CN111930367A/en
Application granted granted Critical
Publication of CN111930367B publication Critical patent/CN111930367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a data processing method, a device and equipment, wherein the method comprises the following steps: the first editor establishes communication connection with the second editor through a preset local communication server; and the first editor performs data transmission with the second editor through the local communication server so as to realize data cooperation between the first editor and the second editor. The first editor establishes communication connection with the second editor through a preset local communication server; the first editor carries out data transmission with the second editor through the local communication server, so that a user can carry out code editing operation through the first editor or the second editor, comprehensiveness of an editing function is guaranteed, data collaboration between the first editor and the second editor is achieved, stability and efficiency of editing operation are improved, and using requirements of the user can be met.

Description

Data processing method, device and equipment
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a data processing method, apparatus, and device.
Background
The code editor is a software program for editing a code program, which can display a source program stored in a computer and then perform operations such as adding, deleting, replacing, and linking of the code through the code editor according to a user's need. In order to improve the convenience of code editing, in the prior art, a code editor is also provided in an online development environment, and a user can directly edit a code program through the online code editor.
In practical application, because the online code editor runs in the environment of the browser, the code editor only has some basic editing operations and realizes some basic functions. However, compared with the local code editor, the editing operation and the implemented functions of the local professional code editor cannot be achieved, so that the using requirements of the user cannot be met, the efficiency of editing the code is reduced, and the good experience of the user in editing the code is affected.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a data processing device and data processing equipment, which can realize data collaboration between an online code editor and a local code editor, ensure the efficiency of editing codes, meet the use requirements of users and further improve the good experience of the users on code editing.
In a first aspect, an embodiment of the present invention provides a data processing method, including:
the first editor establishes communication connection with the second editor through a preset local communication server;
and the first editor performs data transmission with the second editor through the local communication server so as to realize data processing between the first editor and the second editor.
In a second aspect, an embodiment of the present invention provides an apparatus for processing data, including:
the communication module is used for establishing communication connection with the second editor through a preset local communication server;
and the processing module is used for carrying out data transmission with the second editor through the local communication server so as to realize data cooperation between the first editor and the second editor.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement a method of processing data according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, where the computer program is used to make a computer implement the data processing method in the first aspect when executed.
The first editor establishes communication connection with the second editor through a preset local communication server; the first editor carries out data transmission with the second editor through the local communication server, so that a user can carry out code editing operation through the first editor or the second editor, the comprehensiveness of an editing function is guaranteed, data collaboration between the first editor and the second editor is realized, the stability and the efficiency of editing operation are improved, the use requirements of the user can be met, the practicability of the method is effectively improved, and the method is favorable for popularization and application in the market.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention;
fig. 2 is a first flowchart of data transmission between the first editor and the second editor through the local communication server according to the embodiment of the present invention;
FIG. 3 is a flow chart of another data processing method according to an embodiment of the present invention;
fig. 4 is a flowchart of another data processing method according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a first editor establishing a communication connection with a second editor through a predetermined local communication server according to an embodiment of the present invention;
fig. 6 is a flowchart of a further data processing method according to an embodiment of the present invention;
FIG. 7a is a first flowchart of a data processing method according to an embodiment of the present invention;
FIG. 7b is a flowchart II of a data processing method according to an embodiment of the present invention;
fig. 7c is a flowchart of a data processing method according to an embodiment of the present invention;
FIG. 7d is a fourth flowchart of a data processing method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device corresponding to the data processing apparatus provided in the embodiment shown in fig. 8.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and "a" and "an" generally include at least two, but do not exclude at least one, unless the context clearly dictates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
In addition, the sequence of steps in each method embodiment described below is only an example and is not strictly limited.
In order to facilitate understanding of the technical solution of the present embodiment, the following briefly describes the prior art:
in the prior art, an online code editor provided online can only realize some basic editing operations due to the limitation of an online development environment, and compared with a local editor, the online code editor has incomplete functions, cannot meet the editing requirements of users, and cannot achieve the experience of the local editor. And if the editing codes in the online editor are transmitted to the local and then the codes are edited by the local editor, a plurality of steps are needed, and then the edited data are uploaded to the online editor to check the corresponding editing effect, so that the cooperative requirements of the local editor and the online editor cannot be met.
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention; referring to fig. 1, in order to overcome the above-mentioned drawbacks, the present embodiment provides a data processing method, where an execution subject of the data processing method is a first editor, and it is understood that the first editor may be a local editor, or the first editor may also be an online editor, and specifically, the first editor may be implemented as software, or a combination of software and hardware. Specifically, the method may include:
s101: the first editor establishes communication connection with the second editor through a preset local communication server.
Wherein the first editor may comprise a local editor, and in this case, the second editor may comprise an online editor; or, the first editor comprises an online editor and the second editor comprises a local editor; the first editor can be in communication connection with the second editor through the local communication server, namely the local communication server can be used for realizing the communication connection between the local editor and the online editor. In addition, the specific type of the local communication server is not limited in this embodiment, and those skilled in the art may perform any setting according to the function implemented by the local communication server, for example: the local communication server may include a local web socket server, which may be expressed in the form of an editor plug-in or otherwise. For the local web socket server, when the local editor is communicatively connected to the online editor through the local web socket server, the following information needs to be known: the communication connection between the local editor and the online editor can be realized through the local network socket server by the information of the protocol used by the connection, the IP address of the local editor, the protocol port of the local editor, the IP address of the online editor and the protocol port of the online editor.
Specifically, when the first editor includes a local editor and the second editor includes an online editor, the embodiment is not limited to a specific implementation manner that the first editor establishes a communication connection with the second editor through a preset local communication server, and a person skilled in the art may set the communication connection according to specific design requirements and application requirements, and preferably, as shown in fig. 5, the establishing of the communication connection between the first editor and the second editor through the preset local communication server in the embodiment may include:
s1011: and the first editor receives the communication connection request sent by the second editor through the local communication server.
When the first editor is a local editor and the second editor is an online editor, since the IP address of the online editor may change according to the online environment, in order to ensure the stability of establishing the communication connection between the first editor and the second editor, the second editor may send a communication connection request to the first editor, specifically, in a manner that: the second editor may obtain an operation instruction input by a user, and send a communication connection request to the first editor through the local communication server according to the operation instruction. Alternatively, yet another way that can be implemented is: the second editor can send a communication connection request to the first editor through the local communication server according to a preset period; therefore, the first editor can receive the communication connection request sent by the second editor through the local communication server, and the communication connection request at this time can include the IP address of the second editor and the protocol port of the second editor.
S1012: and the first editor establishes communication connection with the second editor through the local communication server according to the communication connection request.
After the first editor receives the communication connection request, a communication connection may be established with the second editor through the local communication server according to the communication connection request, and it is understood that the communication connection at this time is a bidirectional connection, that is, the first editor may send data to the second editor through the local communication server, and the second editor may also send data to the first editor through the local communication server.
S102: the first editor and the second editor are in data transmission through the local communication server, and therefore data collaboration between the first editor and the second editor is achieved.
After the first editor establishes a communication connection with the second editor through the local communication server, the first editor may perform data transmission with the second editor through the local communication server, for example: the first editor can send data to the second editor through the local communication server, or the first editor can receive the data sent by the second editor through the local communication server, and the like, so that data cooperative operation between the first editor and the second editor is effectively realized, the efficiency of editing code data is guaranteed, the use requirements of users are met, and good experience of the users on code editing is improved.
In the data processing method provided by this embodiment, a first editor establishes a communication connection with a second editor through a preset local communication server; the first editor carries out data transmission with the second editor through the local communication server, so that a user can carry out code editing operation through the first editor or the second editor, the comprehensiveness of an editing function is guaranteed, the comprehensiveness of the editing function is guaranteed, data collaboration between the first editor and the second editor is realized, the stability and the efficiency of the editing operation are improved, the use requirements of the user can be met, the practicability of the method is effectively improved, and the method is favorable for popularization and application in the market.
Fig. 2 is a first flowchart of data transmission between a first editor and a second editor through a local communication server according to an embodiment of the present invention; based on the foregoing embodiment, with reference to fig. 2 continuously, in this embodiment, a specific implementation manner of the first editor performing data transmission with the second editor through the local communication server is not limited, and a person skilled in the art may set the implementation manner according to specific design requirements and application requirements, where for data transmission, an implementation manner is that the first editor sends edit data to the second editor, and specifically, the performing data transmission with the second editor through the local communication server by the first editor in this embodiment may include:
s1021: first edit data in a first editor is acquired.
The first editing data may refer to encoded data (original data) located in the first editor, and specifically, when a user inputs the code data through the first editor, the code data in the first editor may be identified, so that the first editing data may be acquired.
S1022: the first editor sends the first edit data to the second editor through the local communication server.
After the first editing data is acquired, the first editor can send the first editing data to the second editor through the local communication server, so that the second editor can acquire the code data input by the user in the first editor synchronously, and data cooperative operation between the first editor and the second editor is realized.
Optionally, after the first editor sends the first editing data to the second editor through the local communication server, referring to fig. 3, the method in this embodiment may further include:
s201: the first editor receives second edit data sent by the second editor according to the first edit data through the local communication server.
After the second editor acquires the first edit data, the user may perform edit processing on the first edit data through the second editor as required, for example: the user can add, delete, modify or replace the first editing data through the second editor to obtain second editing data, wherein the second editing data are data obtained after the user edits the first editing data through the second editor.
After the user processes the first editing data through the second editor to obtain second editing data, in order to ensure data collaboration between the first editor and the second editor, the second editor may send the second editing data to the first editor through the local communication server, so that the first editor may receive and obtain the second editing data.
S202: the first editor performs merging processing on the second edit data and the first edit data.
After the first editor acquires the second edit data, merging the second edit data and the first edit data, specifically, merging the second edit data and the first edit data by the first editor in this embodiment may include:
s2021: the first editor partially or completely updates the first edit data according to the second edit data.
After the second editor receives the first editing data, the first editing data is edited, and when the second editing data is obtained, in order to realize data collaboration between the first editor and the second editor, the second editor can send the second editing data to the first editor through the local communication server, and after the first editor receives the second editing data, the first editing data can be partially updated or completely updated according to the second editing data, so that data collaboration operation of the first editor and the second editor is effectively guaranteed, and the stability and reliability of the method are further improved.
Alternatively, for data transmission, another way to implement that the data transmission between the first editor and the second editor through the local communication server in this embodiment may include:
s1023: and the first editor receives third editing data sent by the second editor through the local communication server, wherein the third editing data comprises code data in the second editor.
When the user inputs the code information through the second editor, the second editor may identify and acquire third editing data in the second editor, where the third editing data may refer to encoded data (original data) located in the second editor, and specifically, when the user inputs the code information through the second editor, the second editor may identify the code data, so that the third editing data may be acquired.
After the third editor is identified, the second editor can send the third editing data to the first editor through the local communication server, so that the first editor can receive the third editing data sent by the second editor through the local communication server, the data cooperative operation between the first editor and the second editor is effectively realized, and the stability and the reliability of the method application are ensured.
Optionally, after the first editor receives, through the local communication server, third edit data sent by the second editor, referring to fig. 4, the method in this embodiment may further include:
s301: and editing the third editing data to obtain fourth editing data.
After the first editor acquires the third editing data, the user may perform editing processing on the third editing data through the first editor as required, for example: and performing addition, deletion, modification or replacement operation on the third editing data to obtain fourth editing data, wherein the fourth editing data is data obtained after the third editing data is edited by the user through the first editor.
After the user processes the third editing data through the first editor and can obtain fourth editing data, in order to ensure data collaboration between the first editor and the second editor, the first editor can send the fourth editing data to the second editor through the local communication server, so that the second editor can receive and obtain the fourth editing data.
S302: and sending the fourth editing data to the second editor through the local communication server so that the second editor can combine the fourth editing data and the third editing data.
After the second editor acquires the fourth edit data, merging the third edit data and the fourth edit data, specifically, merging the third edit data and the fourth edit data by the second editor in this embodiment may include:
s3021: and the second editor carries out partial update or total update on the third editing data according to the fourth editing data.
After the first editor receives the third editing data, the first editor can edit and process the third editing data, and when fourth editing data is obtained, in order to realize data collaboration between the first editor and the second editor, the first editor can send the fourth editing data to the second editor through the local communication server, and after the second editor receives the fourth editing data, the second editor can partially update or completely update and process the third editing data according to the fourth editing data, so that the data collaboration operation between the first editor and the second editor is effectively ensured, and the stability and reliability of the method are further improved.
Fig. 6 is a flowchart of a further data processing method according to an embodiment of the present invention; on the basis of the foregoing embodiment, with continued reference to fig. 6, when the first editor includes an online editor and the second editor includes a local editor, the method in this embodiment may further include:
s401: edit data in a first editor is identified.
S402: and generating an editing result according to the editing data, and displaying the editing result.
Specifically, the edit data may be real-time data in the first editor, for example, when the first editor is an online editor, the edit data may be edit data input by a user through the online editor, or the edit data may be edit data received by the online editor and sent by the local editor, or the edit data may be data obtained by the online editor by merging modified data and original data sent by the local editor. After the edit data in the first editor is identified, the edit data can be analyzed, so that an edit result can be acquired, and the edit result can be displayed in order to facilitate a user to check whether the edit result is correct.
By identifying the edit data in the first editor, generating an edit result according to the edit data and displaying the edit result, a user can intuitively and quickly know whether the edit result corresponding to the edit data meets the requirement, if not, the edit data can be updated or adjusted in real time, and the convenience and reliability of the method are further improved.
In specific application, referring to fig. 7a to 7d, an embodiment of the present application provides a data processing method, where execution processing of the method may be a local editor or an online editor, and specifically, the method is described by taking the local editor as an execution subject, and the method may include the following steps:
step 1: a local editor (for example, a Visual Studio Code, abbreviated as VS Code) is opened, and then a local communication server websocket server is created in an editor plug-in or some other way, where the IP address of the local websocket server may be 127.0.0.1, and the websocket server may establish a connection with the local editor through a first specific port (for example, 9998) of the local editor.
An online editor is opened in a browser to edit a certain project, a websocket server establishes websocket connection with the online editor through a second specific port of the online editor, the address can be ws:// localhost:9998, so that the online editor establishes bidirectional connection with a local editor, and as shown in fig. 7a, the websocket server can also monitor the working states of the first specific port and the second specific port.
step 2: referring to fig. 7b, the user inputs the original edit data in the online editor, and at this time, the online editor may also display the edit result corresponding to the original edit data. Then, the original editing data is transmitted to the local editor through the websocket server, because the local editor has more comprehensive functions, for example: the functions of self-defined editing, highlighting, code reminding and the like can be executed, so that the editing experience can be enhanced.
step 3: referring to fig. 7c, after receiving the original editing data, the local editor may edit and modify the original editing data according to a requirement, and transmit the modified editing data to the browser in real time through the websocket server, and after receiving the modified editing data, the browser merges the modified editing data into the online editor, and may generate and display a new editing result based on the merged result, thereby implementing an operation of refreshing a preview effect of the editing result, and implementing an effect of simultaneously editing and collaborating data of the online editor and the local editor in real time.
step 4: referring to fig. 7d after fig. 7a, a user may also input original editing data in a local editor, and then transmit the original editing data to an online editor through a websocket server, where the online editor may display an editing result corresponding to the original editing data.
And then, the user can edit and modify the original editing data through the online editor according to the requirement, and at the moment, the online editor can also generate and display a new editing result based on the modified editing data, so that the operation of refreshing the preview effect of the editing result is realized. In addition, the online editor can also transmit the modified editing data to the local editor in real time through the websocket server, and the local editor can combine the modified editing data and the original editing data, so that the effects of simultaneous editing and real-time cooperation of the data of the online editor and the local editor are achieved.
The data processing method provided by the application embodiment realizes data collaboration between the local editor and the online editor through the pre-established local communication server, not only guarantees comprehensiveness of editing functions, but also effectively reduces implementation cost without data resources of a remote server in the implementation process.
Fig. 8 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention; referring to fig. 8, the present embodiment provides a data processing apparatus, which may specifically be a first editor, and may execute the data processing method corresponding to fig. 1. Specifically, the processing device may include:
the communication module 11 is used for establishing communication connection with the second editor through a preset local communication server;
and the processing module 12 is configured to perform data transmission with the second editor through the local communication server, so as to implement data collaboration between the first editor and the second editor.
The first editor comprises a local editor, and the second editor comprises an online editor; alternatively, the first editor comprises an online editor and the second editor comprises a local editor.
Optionally, the local communication server comprises a local web socket server, the local web socket server being expressed in the form of an editor plug-in.
Optionally, when the processing module 12 performs data transmission with the second editor through the local communication server, the processing module 12 is configured to perform: acquiring first editing data in a first editor; and sending the first editing data to the second editor through the local communication server.
Optionally, after the first editor sends the first editing data to the second editor through the local communication server, the processing module 12 in this embodiment may be further configured to perform: receiving second editing data sent by a second editor according to the first editing data through a local communication server; and merging the second editing data and the first editing data.
Optionally, when the processing module 12 performs the merging processing on the second edit data and the first edit data, the processing module 12 may be configured to perform: and updating the first editing data partially or completely according to the second editing data.
Optionally, when the processing module 12 performs data transmission with the second editor through the local communication server, the processing module 12 may be configured to perform: and receiving third editing data sent by the second editor through the local communication server, wherein the third editing data comprises code data in the second editor.
Optionally, after the first editor receives, through the local communication server, the third edit data sent by the second editor, the processing module 12 in this embodiment may be further configured to perform: editing the third editing data to obtain fourth editing data; and sending the fourth editing data to the second editor through the local communication server so that the second editor can combine the fourth editing data and the third editing data.
Optionally, when the first editor includes a local editor and the second editor includes an online editor, and when the communication module 11 establishes a communication connection with the second editor through a preset local communication server, the communication module 11 may be specifically configured to perform: receiving a communication connection request sent by a second editor through a local communication server; and establishing communication connection with the second editor through the local communication server according to the communication connection request.
Optionally, when the first editor includes an online editor and the second editor includes a local editor, the processing module 12 in this embodiment may be further configured to perform: identifying edit data in a first editor; and generating an editing result according to the editing data, and displaying the editing result.
The apparatus shown in fig. 8 can perform the method of the embodiment shown in fig. 1 to 7d, and the detailed description of this embodiment can refer to the related description of the embodiment shown in fig. 1 to 7 d. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 1 to 7d, and are not described herein again.
In one possible design, the structure of the data processing apparatus shown in fig. 8 may be implemented as an electronic device, which may be a mobile phone, a tablet computer, a server, or other devices. As shown in fig. 9, the electronic device may include: a processor 21 and a memory 22. Wherein the memory 22 is used for storing a program that supports the electronic device to execute the processing method of the data provided in the embodiments shown in fig. 1-7 d, and the processor 21 is configured to execute the program stored in the memory 22.
The program comprises one or more computer instructions which, when executed by the processor 21, are capable of performing the steps of:
establishing communication connection with a second editor through a preset local communication server;
and carrying out data transmission with the second editor through the local communication server so as to realize data collaboration between the first editor and the second editor.
Optionally, the processor 21 is further configured to perform all or part of the steps in the embodiments shown in fig. 1-7 d.
The electronic device may further include a communication interface 23 for communicating with other devices or a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an electronic device, which includes a program for executing the processing method of the data in the method embodiment shown in fig. 1 to 7 d.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (12)

1. A method for processing data, comprising:
the first editor establishes communication connection with the second editor through a preset local communication server;
and the first editor performs data transmission with the second editor through the local communication server so as to realize data cooperation between the first editor and the second editor.
2. The method of claim 1,
the first editor comprises a local editor and the second editor comprises an online editor; alternatively, the first and second electrodes may be,
the first editor comprises an online editor and the second editor comprises a local editor.
3. The method of claim 2, wherein the local communication server comprises a local web socket server expressed in the form of an editor plug-in.
4. The method of claim 2, wherein the first editor performs data transmission with the second editor through the local communication server, comprising:
acquiring first editing data in the first editor;
and the first editor sends the first editing data to the second editor through the local communication server.
5. The method of claim 4, wherein after a first editor sends the first edit data to the second editor through the local communication server, the method further comprises:
the first editor receives second editing data sent by the second editor according to the first editing data through the local communication server;
and the first editor combines the second edit data and the first edit data.
6. The method according to claim 5, wherein the first editor performs a merging process on the second edit data and the first edit data, including:
and the first editor carries out partial update or total update on the first editing data according to the second editing data.
7. The method of claim 2, wherein the first editor performs data transmission with the second editor through the local communication server, comprising:
and the first editor receives third editing data sent by the second editor through the local communication server, wherein the third editing data comprises code data in the second editor.
8. The method according to claim 7, wherein after the first editor receives, via the local communication server, third edit data sent by the second editor, the method further comprises:
editing the third editing data to obtain fourth editing data;
and sending the fourth editing data to the second editor through the local communication server so that the second editor can combine the fourth editing data and the third editing data.
9. The method according to any one of claims 2 to 8, wherein when the first editor comprises a local editor and the second editor comprises an online editor, the first editor establishes a communication connection with the second editor through a preset local communication server, and the method comprises:
the first editor receives a communication connection request sent by the second editor through a local communication server;
and the first editor establishes communication connection with the second editor through the local communication server according to the communication connection request.
10. The method of any of claims 2-8, wherein when the first editor comprises an online editor and the second editor comprises a local editor, the method further comprises:
identifying edit data in the first editor;
and generating an editing result according to the editing data, and displaying the editing result.
11. An apparatus for processing data, comprising:
the communication module is used for establishing communication connection with the second editor through a preset local communication server;
and the processing module is used for carrying out data transmission with the second editor through the local communication server so as to realize data cooperation between the first editor and the second editor.
12. An electronic device, comprising: a memory, a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement a method of processing data according to any one of claims 1 to 10.
CN201910400230.XA 2019-05-13 2019-05-13 Data processing method, device and equipment Active CN111930367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910400230.XA CN111930367B (en) 2019-05-13 2019-05-13 Data processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910400230.XA CN111930367B (en) 2019-05-13 2019-05-13 Data processing method, device and equipment

Publications (2)

Publication Number Publication Date
CN111930367A true CN111930367A (en) 2020-11-13
CN111930367B CN111930367B (en) 2024-04-16

Family

ID=73282636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910400230.XA Active CN111930367B (en) 2019-05-13 2019-05-13 Data processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN111930367B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130275312A1 (en) * 2012-04-12 2013-10-17 Avid Technology, Inc. Methods and systems for collaborative media creation
CN104615586A (en) * 2015-01-21 2015-05-13 上海理工大学 Real-time cooperative editing system
CN107179952A (en) * 2016-03-11 2017-09-19 思杰系统有限公司 Collaboration Input Method Editor (IME) activity between virtual application client and server
CN107301197A (en) * 2017-05-12 2017-10-27 上海瀚银信息技术有限公司 A kind of business datum tracking processing system and method
US20180373883A1 (en) * 2017-06-24 2018-12-27 Seclore Technology Private Limited Information rights management through editors implemented in a browser
CN109710909A (en) * 2018-12-29 2019-05-03 腾讯科技(深圳)有限公司 Content acquisition method, device, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130275312A1 (en) * 2012-04-12 2013-10-17 Avid Technology, Inc. Methods and systems for collaborative media creation
CN104615586A (en) * 2015-01-21 2015-05-13 上海理工大学 Real-time cooperative editing system
CN107179952A (en) * 2016-03-11 2017-09-19 思杰系统有限公司 Collaboration Input Method Editor (IME) activity between virtual application client and server
CN107301197A (en) * 2017-05-12 2017-10-27 上海瀚银信息技术有限公司 A kind of business datum tracking processing system and method
US20180373883A1 (en) * 2017-06-24 2018-12-27 Seclore Technology Private Limited Information rights management through editors implemented in a browser
CN109710909A (en) * 2018-12-29 2019-05-03 腾讯科技(深圳)有限公司 Content acquisition method, device, terminal and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
陈岭, 陈挺, 陈根才: "利用Java实现基于Web的同步协同编辑器", 计算机工程, no. 04 *
马保国;李华刚;王连锋;: "基于WebService的WebGis设计与实现", 计算机与数字工程, no. 04 *

Also Published As

Publication number Publication date
CN111930367B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
US11538046B2 (en) Page data acquisition method, apparatus, server, electronic device and computer readable medium
CN104660635A (en) Message synchronizing method, device and system
CN108196915A (en) Code process method, equipment and storage medium based on application container engine
EP2916495A1 (en) Information processing system, an information processing apparatus and a medium storing an information processing program
CN112286904A (en) Cluster migration method and device and storage medium
CN113569541A (en) Message generation method, device, equipment and medium
CN110795353A (en) Debugging method, device and equipment for fast application and storage medium
CN114465867B (en) Maintenance method and device of server, storage medium and processor
CN113312083A (en) Application generation method, device and equipment
CN107862035B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN110677443A (en) Data transmitting and receiving method, transmitting end, receiving end, system and storage medium
US11843569B2 (en) Filtering group messages
CN107566519B (en) Code operation method and device, server and server cluster
CN111930367B (en) Data processing method, device and equipment
CN105162817A (en) Method and apparatus for image upload
CN112817493B (en) Content sharing method and device, computer equipment and storage medium
CN104516883A (en) Webpage sharing method, device and system
CN114500651A (en) Block chain data transmission method, device and equipment and readable storage medium
CN113961162A (en) Screen projection control method, screen projection sending end, screen projection receiving end and screen projection system
CN111367592B (en) Information processing method and device
CN104243455A (en) Method and system for processing image
CN113626409B (en) Test data processing method, device, equipment and storage medium
CN115168772A (en) Webpage processing method, device and storage medium
CN113568593A (en) Content transmission method and device and electronic equipment
CN116680235A (en) Data processing method and related device

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