CN112035596A - Text submission method, device, equipment and storage medium - Google Patents

Text submission method, device, equipment and storage medium Download PDF

Info

Publication number
CN112035596A
CN112035596A CN202010900773.0A CN202010900773A CN112035596A CN 112035596 A CN112035596 A CN 112035596A CN 202010900773 A CN202010900773 A CN 202010900773A CN 112035596 A CN112035596 A CN 112035596A
Authority
CN
China
Prior art keywords
text
submission
target text
instruction
latest
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.)
Pending
Application number
CN202010900773.0A
Other languages
Chinese (zh)
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.)
JD Digital Technology Holdings Co Ltd
Original Assignee
JD Digital Technology Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by JD Digital Technology Holdings Co Ltd filed Critical JD Digital Technology Holdings Co Ltd
Priority to CN202010900773.0A priority Critical patent/CN112035596A/en
Publication of CN112035596A publication Critical patent/CN112035596A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/194Calculation of difference between files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a text submission method, a text submission device, text submission equipment and a storage medium, and belongs to the technical field of networks. When a preview instruction of a user is obtained, a target text and a latest text of a source text corresponding to the target text at the current moment are displayed according to the preview instruction, the target text is obtained after the content of the source text is modified on a script editing page, a submission instruction of the user is obtained, and whether the target text is submitted or not is determined according to the submission instruction, wherein the submission instruction is submitted by the user based on the content of the displayed latest text and the content of the target text. The method is used for solving the problem that when multiple persons modify the same source text at the same time, text content errors are easily covered.

Description

Text submission method, device, equipment and storage medium
Technical Field
The present application relates to the field of network technologies, and in particular, to a method, an apparatus, a device, and a storage medium for text submission.
Background
The file storage system is a file system which organizes and allocates the space of the file storage device, is responsible for storing files and protecting and retrieving the stored files, can be a Windows operating system, a Linux operating system, a Mac operating system and the like, and can be used as a file system. It is a technique that is clearly distinguished from a database storage system.
The main operations of the file storage system include four operations of creating, modifying, deleting and reading files. In order to achieve the purpose of providing remote services, it provides interface services satisfying the above four operations to the outside based on a HyperText Transfer Protocol (HTTP), a HyperText Transfer Protocol over secure key Layer (HTTPs), or other protocols. The user can create, modify, delete and read related files through the browser, so that teams can share, develop and maintain the same project conveniently.
When a source text is modified, the existing operating system generally implements a function of directly overwriting the source text content with the modified target text. If a plurality of persons modify and submit the modified source text in the same time period, if the first person submits the modification of the source text first, and the second person does not know that the source text is modified, the situation that the modified content of the previous person is mistakenly covered can easily occur after directly submitting the text.
Disclosure of Invention
The application provides a text submission method, a text submission device, text submission equipment and a storage medium, which are used for solving the problem that text contents are easily mistakenly covered when multiple persons modify the same source text at the same time.
In a first aspect, an embodiment of the present application provides a text submission method, including:
acquiring a preview instruction of a user, and displaying a target text and a latest text of a source text corresponding to the target text at the current moment according to the preview instruction, wherein the target text is obtained after the content of the source text is modified on a script editing page;
acquiring a submission instruction of a user, and determining whether to submit the target text according to the submission instruction, wherein the submission instruction is submitted by the user based on the displayed content of the target text and the content of the latest text.
Optionally, after obtaining the preview instruction of the user and before obtaining the submission instruction of the user, the method further includes:
and comparing whether the characters at the same position in the latest text and the target text are the same or not, if not, marking the different characters in the latest text and the target text respectively to obtain a marking result, and displaying the marking result.
Optionally, the commit instruction is a cancel commit instruction or a confirm commit instruction;
the determining whether to submit the target text according to the submission instruction includes:
if the submission instruction of the user is the submission canceling instruction, canceling the submission of the target text, wherein the submission canceling instruction is used for indicating that the submission of the target text is canceled;
and if the submission instruction of the user is the determined submission instruction, submitting the target text based on the determined submission instruction.
Optionally, after the marking of different characters in the latest text and the target text to obtain a marking result and displaying the marking result, and before submitting the target text, the method further includes:
and acquiring the characters marked in the latest text in the marking result selected by the user, and modifying the target text according to the characters marked in the latest text.
Optionally, the modifying the target text according to the marked characters in the latest text includes:
adding the marked characters in the latest text to the selected position of the target text;
and/or deleting part of the content in the target text according to the marked characters in the latest text.
Optionally, the mark comprises a highlight mark;
the marking of different characters in the latest text and the target text respectively comprises:
highlighting different characters in the latest text and the target text respectively.
Optionally, after displaying the target text and the latest text of the source text corresponding to the target text at the current time according to the preview instruction and before acquiring a submission instruction of the user, the method further includes:
and acquiring an operation log of the source text modified by the user, and storing the operation log.
In a second aspect, an embodiment of the present application provides a text submission apparatus, including:
the display module is used for displaying a target text and a latest text of a source text corresponding to the target text at the current moment according to a preview instruction when the preview instruction of a user is acquired, wherein the target text is obtained after the content of the source text is modified on a script editing page;
and the acquisition module is used for acquiring a submission instruction of a user and determining whether to submit the target text according to the submission instruction, wherein the submission instruction is submitted by the user based on the content of the displayed target text and the content of the latest text.
In a third aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor is configured to execute the program stored in the memory to implement the text submission method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the text submission method according to the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the method provided by the embodiment of the application, when the preview instruction of the user is obtained, the target text and the latest text of the source text corresponding to the target text at the current moment are displayed, so that the user can compare the content of the target text with the latest text of the displayed source text at the current moment, whether the target text needs to be submitted or not is judged, the latest text is updated by the target text, and the situation that the content of the latest text is covered due to the fact that the content of the latest text of the source text is not known and the target text is wrongly submitted is avoided.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
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 for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a text submission method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating specific implementation steps after a preview instruction of a user is obtained and before a submission instruction of the user is obtained according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a comparison interaction interface in practical application provided in the embodiment of the present application;
fig. 4 is a schematic structural diagram of a text submission apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. 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 application.
The embodiment of the application provides a text submission method, which is used for determining whether to submit a target text, and the method can be directly integrated into electronic equipment in a form of a software module, and the electronic equipment can be a terminal in any form.
The method interacts with the file storage system through the terminal, so that the text in a certain storage position in the file storage system is edited and operated, such as creation, modification, deletion, reading and the like. The terminal may obtain a Text from the file storage system through the application program interface based on a network Protocol, and operate the Text, where the network Protocol may be a HyperText Transfer Protocol (HTTP), a HyperText Transfer Protocol over secure session Layer (HTTPs), or a Transmission Control Protocol/Internet Protocol (TCP/IP).
The file storage system is distributed in servers, the servers include but are not limited to remote servers or cloud servers with remote service functions, and the terminals include but are not limited to computing devices such as computers, laptops, tablet computers and cloud platforms.
Referring to fig. 1, a text submission method includes:
s101, a preview instruction of a user is obtained, and a target text and a latest text of a source text corresponding to the target text at the current moment are displayed according to the preview instruction, wherein the target text is obtained after the content of the source text is modified on a script editing page.
The target text is a text obtained by modifying the content of the source text on the script editing page by the user and acquired by the terminal.
The latest text is the text which has the same identification with the source text and has the text modification time closest to the current moment in the file storage system at the current moment when the user submits the preview instruction.
The file storage system comprises a plurality of texts and attribute information of each text, wherein the text attribute information comprises but is not limited to text identification and text modification time, and the text modification time is the latest modification time. The terminal can obtain the latest text of the source text at the current moment through the application programming interface according to the text identification and the text modification time, wherein the current moment is the moment when the user submits the preview instruction.
In some embodiments, after the user editing instruction is obtained, the script editing page is skipped to, and the content of the source text is modified in the script editing page to obtain the target text. The triggering operation of the editing instruction may be various, for example, clicking an "edit" button in the source text, or double-clicking a page of the source text, that is, entering a script editing page of the source text, to edit the source text.
In order to prevent a user from directly submitting a target text because the user does not know the latest text content of a source text, and enable a terminal to directly update the content of the latest text by using the target text, the situation that the latest text is possibly mistakenly covered occurs.
The preview instruction can be generated when the user clicks a 'save' button of the script editing page or a 'submit' button is operated, can be generated when the user clicks any blank area of the script editing page for a long time and is greater than or equal to a first preset time length, namely the user clicks the blank area of the script editing page of the terminal, or can be generated when the user clicks the script editing page for N times continuously and the time interval between two adjacent clicks is less than a second preset time length, namely the user clicks the area of the script editing page continuously, and N is a positive integer not less than 2.
It is understood that the first preset time period and the second preset time period are only schematic, do not refer to any specific time period, and can be set according to requirements in practical application.
In addition, the triggering operation of the preview instruction may also be a combined operation, for example, after a long-time pressing operation of the user in a blank area of the script editing page is acquired, or a continuous clicking operation of the blank area of the script editing page or a right-click operation is acquired, the terminal provides a preview option in the display interface, generates a preview instruction after the terminal detects that the user selects the preview option, and displays the contents of the target text and the latest text according to the preview instruction.
In practical application, after acquiring a blank area in a script editing page and performing single right click operation, long press operation or continuous click user operation, a user option list is displayed, wherein the user option list comprises a plurality of options, the options comprise 'submit preview', and a user can select corresponding user options according to own operation requirements.
In some embodiments, after obtaining the preview instruction of the user, displaying the target text and the latest text according to the preview instruction includes: and displaying a comparison interactive interface according to the preview instruction, and displaying the content of the target text and the content of the latest text in the comparison interactive interface.
The comparison interactive interface is divided into a left area and a right area, the left area and the right area respectively display the content of the target text and the content of the latest text, for example, the content of the target text can be displayed in the left half area, the content of the latest text can be displayed in the right half area, and a user compares the content of the target text displayed in the comparison interactive interface with the content of the latest text to determine whether to submit the target text.
S102, acquiring a submission instruction of the user, and determining whether to submit the target text according to the submission instruction, wherein the submission instruction is submitted by the user based on the content of the displayed target text and the content of the latest text.
The commit instruction may be a cancel commit instruction or an acknowledge commit instruction.
Determining whether to submit the target text according to the submission instructions includes: if the submission instruction of the user is a submission canceling instruction, canceling the submission of the target text, wherein the submission canceling instruction is used for indicating to cancel the submission of the target text; and if the submission instruction of the user is the confirmed submission instruction, submitting the target text based on the confirmed submission instruction.
After the latest texts of the target text and the source text are displayed, the user can determine whether the target text needs to be submitted according to the displayed latest texts and the contents of the target text, and trigger the terminal to cancel the submission instruction or confirm the submission instruction.
And when the user judges that the target text does not need to be submitted, triggering a submission canceling instruction, and canceling the submission of the target text after the terminal acquires the submission canceling instruction of the user. The triggering operation for canceling the submission instruction can be an operation of clicking a cancel button by an obtained user; or canceling the submission of the target text after the operation of closing the display interface of the user is acquired. It should be understood that there are many triggering operations for canceling a commit instruction, which are only examples, and there may be other triggering operations in practical applications, and the triggering operations are not limited in detail herein.
And when the user judges that the content of the latest text does not meet the requirement and needs to submit the target text, clicking the confirmation submission instruction, and submitting the target text after the terminal acquires the confirmation submission instruction of the user. The trigger operation for confirming the submission instruction may be an operation of clicking a "confirm" button in the target text, or an operation of clicking a "confirm" button in the comparison interactive interface.
According to the method and the device for processing the target text, when the preview instruction of the user is obtained, the latest text of the target text and the latest text of the source text are displayed, so that the user can determine whether the target text needs to be submitted or not according to the content of the displayed target text and the latest text, and therefore the situation that the content of the latest text is covered due to the fact that the content of the latest text of the source text is not known and the target text is submitted mistakenly is reduced with great probability.
Referring to fig. 2, in some embodiments, after obtaining the preview instruction of the user and before obtaining the submission instruction of the user, the method further includes:
s201, comparing whether the characters at the same position in the latest text and the target text are the same or not, if not, executing the step S202, and if so, executing the step S203.
S202, if the characters are different, marking the different characters in the content of the latest text and the content of the target text respectively to obtain a marking result, and displaying the marking result.
And S203, if the two texts are the same, not marking the content of the latest text and the content of the target text.
When comparing whether the characters at the same position in the latest text and the target text are the same or not, the length of the content of the latest text or the target text may be different because the content of the latest text or the target text is added or deleted, and therefore, the latest text and the target text may be matched to be texts with the same character length through a text comparison algorithm, wherein each of the latest text and the target text comprises at least one line of character strings, and the specific matching process comprises:
determining the optimal matching character length between the latest text and the target text, wherein the optimal matching character length is the character length which enables the character similarity between the characters of the latest text and the target text to be highest; the best match character length should be less than the character length of either of the characters of the latest text and the characters of the target text.
And adding characters into the latest text and the target text according to the length of the optimal matching characters, and modifying the latest text and the target text into texts with the same character length to obtain the matched latest text and the matched target text. The added characters can be represented by space characters or other placeholders, and the matching process is illustrated in detail for better understanding.
For example, the content of the latest text is GGATCGA, the content of the target text is GAATTCAGTTA, the calculated longest common substring length is 6, that is, the best matching character length is 6, the best matching characters in the latest text and the target text are, respectively, the first character G in the latest text, which is the same as the first character G in the target text, the third character a in the latest text, which is the same as the third character a in the target text, the fourth character T and the fifth character C in the latest text, which are the same as the fifth character and the sixth character in the target text, the sixth character G in the latest text, which is the same as the eighth character in the target text, the seventh character a in the latest text, which is the same as the last character in the target text, in order to be able to match the target text and the latest text into a text of the same character length, adding a space character at a corresponding position in the latest text to obtain:
the latest text after matching: GGA _ TC _ G __ A
Matching the target text: GAATTCAGTTA
And comparing whether the characters at the same position of the matched latest text and the matched target text are the same or not, if not, marking the different characters in the matched latest text and the matched target text respectively to obtain a marking result, and displaying the marking result.
The marking result includes, but is not limited to, the following two cases, one case is that characters at the same position in the latest text and the target text are different characters; the other is the same position character in the latest text or target text, one is the added character, i.e. space character, and the other is the non-added character. If the characters at the same position in the two texts are different characters, marking the two different characters respectively, and if one of the characters at the same position is an added character, namely a space character, and the other is a non-added character, marking the non-added character. Comparing the matched latest text with the matched target text, wherein the second character in the matched latest text is 'G', the two characters are different from the second character 'A' in the matched target text, the two characters are respectively marked, the fourth character in the matched latest text is an added character, the fourth character in the matched target text is unchanged and is still 'T', the fourth character in the matched latest text is different from the fourth character in the matched target text, and the fourth character in the matched latest text is marked because the fourth character in the matched latest text is an added character.
The marking mode comprises highlighting marking, namely highlighting different characters in the latest text and the target text respectively, and displaying a highlighting marking result while displaying the latest text and the target text. The fonts of characters that are not identical in the latest text and the target text, respectively, may also be marked with a specified color, for example, red. In the content in which the latest text and the target text are displayed, character marks in red are displayed. The way of marking is not unique as long as it is possible to distinguish between characters in the latest text and those in the target text which are not the same.
Besides marking different characters in the latest text and the target text, the lines of the characters in the latest text and the target text which are different can be marked under the condition that a plurality of lines of characters exist in the latest text and the target text, and a line marking result is obtained, so that a user can quickly and intuitively distinguish the difference between the characters in each line of the latest text and the characters in each line of the target text.
In some embodiments, after displaying the marking result in the comparison interactive interface and before submitting the target text, the method further includes:
and acquiring the marked characters in the latest text in the marking result selected by the user, and modifying the target text according to the marked characters in the latest text.
In some embodiments, the manner in which the target text is modified based on the characters marked in the latest text includes:
the characters marked in the latest text are added to the position in the target text selected by the user.
And/or deleting part of the content in the target text according to the marked characters in the latest text.
In some embodiments, after the target text is displayed, the content of the target text may be modified and edited in the displayed area, for example, the content of the latest text displayed in the marking result is added relative to the content in the target text, the content added in the latest text selected by the user is obtained before the target text is submitted, the content is added to the corresponding position in the target text by copying, and the content manually input by the user at the corresponding position in the target text may also be obtained.
In some embodiments, the content of the marking result that shows the latest text is deleted relative to the content of the target text, and before submitting the target text, the user can delete part of the content of the target text according to the deleted content of the latest text.
In addition to adding the marked characters in the latest text to the position in the target text selected by the user or deleting part of the content in the target text according to the marked characters in the latest text, the adding operation and the deleting operation can be simultaneously carried out in the content of the target text.
Optionally, after displaying the target text and the latest text of the source text corresponding to the target text at the current time according to the preview instruction and before acquiring a submission instruction of the user, the method further includes:
and acquiring an operation log of the source text modification of the user, and storing the operation log so as to prompt the subsequent modification of the source text, or detecting whether the source text modification has a problem according to the operation log.
In some embodiments, the comparison interactive interface displays the content of the target text and the content of the latest text according to the preview instruction.
And setting a submission description editing area in the comparison interactive interface, acquiring a modification description of the source text input by the user in the editing area, and storing the acquired modification description as an operation log so as to record the editing operation of the source text.
In order to better understand the content of the present application, this embodiment provides a schematic diagram of a comparison interactive interface in practical application, and as shown in fig. 3, after a preview instruction of a user is obtained, the comparison interactive interface is displayed, in the comparison interactive interface, a left half image displays the content of a target text obtained after a source text is modified, a right half image displays the content of a latest text of the source text, virtual box marks are respectively displayed in sixth row contents of the left half image and the right half image, the user can more intuitively distinguish the difference between the content of the target text and the content of the latest text according to the result of the virtual box marks, and it can be seen from the marks that "return" hello you "in the target text in the left half image is different from" return "hello world" in the latest text in the right half image. And then the user judges whether the target text needs to be submitted according to the comparison result.
Besides, a description submitting editing area is further arranged in the lower middle part area of the comparison interactive interface, modification descriptions of the active text are displayed in the description submitting editing area, and after the confirmed submission instruction of the user is obtained, the modification descriptions submitted in the description submitting editing area can be stored as an operation log.
The mode of comparing the target text area, the latest text area and the submitted description editing area divided by the interactive interface is not unique, and the division can be carried out according to actual needs.
Based on the same concept, the embodiment of the present application provides a text submission apparatus, and the specific implementation of the apparatus may refer to the description of the method embodiment section, and repeated details are not repeated, and as shown in fig. 4, the apparatus mainly includes:
the display module 401 is configured to obtain a preview instruction of a user, and display, according to the preview instruction, a target text and a latest text of a source text corresponding to the target text at the current time, where the target text is obtained after content of the source text is modified on a script editing page.
An obtaining module 402, configured to obtain a submission instruction of the user, and determine whether to submit the target text according to the submission instruction, where the submission instruction is submitted by the user based on the content of the displayed target text and the content of the latest text.
Optionally, the text submission device further includes a marking module, where the marking module is configured to:
after a preview instruction of a user is obtained and before a submission instruction of the user is obtained, comparing whether the characters at the same position in the latest text and the target text are the same or not, if not, marking the different characters in the latest text and the target text respectively to obtain a marking result.
The display module 401 is also used for displaying the marking result.
Specifically, the identifier includes a highlight mark, and the marking module is configured to: highlighting characters that are not identical in the latest text and the target text, respectively.
Specifically, the commit instruction is a cancel commit instruction or an acknowledge commit instruction. The obtaining module 402 is specifically configured to:
if the submission instruction of the user is a submission canceling instruction, canceling the submission of the target text, wherein the submission canceling instruction is used for indicating to cancel the submission of the target text;
and if the submission instruction of the user is determined as the submission confirmation instruction, submitting the target text based on the determined submission instruction.
Optionally, the text submission device further includes a modification module, where the modification module is configured to: and after the marking result is displayed and before the target text is submitted, acquiring the marked characters in the latest text in the marking result selected by the user, and modifying the target text according to the marked characters in the latest text.
The modification module is specifically configured to add the marked characters in the latest text to the selected position of the target text, and/or delete part of the content in the target text according to the marked characters in the latest text.
Optionally, the text submission device further includes a saving module, where the saving module is configured to: and after the target text and the latest text of the source text corresponding to the target text at the current moment are displayed, and before a submitting instruction of a user is acquired, acquiring an operation log of the user for modifying the source text, and storing the operation log.
In the embodiment, when the display module obtains the submission instruction of the user, the latest text of the target text and the source text corresponding to the target text at the current moment is displayed, so that the user can judge whether the target text needs to be submitted according to the content of the displayed target text and the latest text, the obtaining module is used for obtaining the submission instruction of the user, and whether the target text is submitted is determined according to the submission instruction, so that the situation that the content of the latest text of the source text is not known, and the content of the latest text is covered due to the fact that the target text is wrongly submitted is avoided.
Based on the same concept, an embodiment of the present application further provides an electronic device, and as shown in fig. 5, the electronic device mainly includes: a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 are communicated with each other through the communication bus 504. The memory 503 stores a program executable by the processor 501, and the processor 501 executes the program stored in the memory 503 to implement the steps of the text submission method described in the above embodiments.
The communication bus 504 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 504 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The communication interface 502 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory 503 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the aforementioned processor 501.
The Processor 501 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc., and may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to perform the text submission method steps described in the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of text submission, comprising:
acquiring a preview instruction of a user, and displaying a target text and a latest text of a source text corresponding to the target text at the current moment according to the preview instruction, wherein the target text is obtained after the content of the source text is modified on a script editing page;
acquiring a submission instruction of a user, and determining whether to submit the target text according to the submission instruction, wherein the submission instruction is submitted by the user based on the displayed content of the target text and the content of the latest text.
2. The method of claim 1, wherein after the obtaining the preview instruction of the user and before the obtaining the submission instruction of the user, the method further comprises:
and comparing whether the characters at the same position in the latest text and the target text are the same or not, if not, marking the different characters in the latest text and the target text respectively to obtain a marking result, and displaying the marking result.
3. The text submission method of claim 2, wherein the submission instruction is a cancel submission instruction or a confirm submission instruction;
the determining whether to submit the target text according to the submission instruction includes:
if the submission instruction of the user is the submission canceling instruction, canceling the submission of the target text, wherein the submission canceling instruction is used for indicating that the submission of the target text is canceled;
and if the submission instruction of the user is the determined submission instruction, submitting the target text based on the determined submission instruction.
4. The method of claim 3, wherein the marking of different characters in the latest text and the target text to obtain a marking result, and displaying the marking result before the target text is submitted, further comprises:
and acquiring the characters marked in the latest text in the marking result selected by the user, and modifying the target text according to the characters marked in the latest text.
5. The text submission method of claim 4, wherein modifying the target text based on the marked-up characters in the latest text includes:
adding the marked characters in the latest text to the selected position of the target text;
and/or deleting part of the content in the target text according to the marked characters in the latest text.
6. The text submission method of claim 2, wherein the indicia includes a highlight indicia;
the marking of different characters in the latest text and the target text respectively comprises:
highlighting different characters in the latest text and the target text respectively.
7. The method of claim 1, wherein the step of displaying, according to the preview instruction, a target text and a latest text of a source text corresponding to the target text at a current time before acquiring a user's submission instruction further comprises:
and acquiring an operation log of the source text modified by the user, and storing the operation log.
8. A text submission apparatus, comprising:
the display module is used for displaying a target text and a latest text of a source text corresponding to the target text at the current moment according to a preview instruction of a user, wherein the target text is obtained after the content of the source text is modified on a script editing page;
and the acquisition module is used for acquiring a submission instruction of a user and determining whether to submit the target text according to the submission instruction, wherein the submission instruction is submitted by the user based on the content of the displayed target text and the content of the latest text.
9. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor, configured to execute the program stored in the memory, to implement the text submission method as recited in any one of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out a text submission method as claimed in any one of claims 1 to 7.
CN202010900773.0A 2020-08-31 2020-08-31 Text submission method, device, equipment and storage medium Pending CN112035596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010900773.0A CN112035596A (en) 2020-08-31 2020-08-31 Text submission method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010900773.0A CN112035596A (en) 2020-08-31 2020-08-31 Text submission method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112035596A true CN112035596A (en) 2020-12-04

Family

ID=73587080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010900773.0A Pending CN112035596A (en) 2020-08-31 2020-08-31 Text submission method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112035596A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112529719A (en) * 2020-12-18 2021-03-19 中国平安财产保险股份有限公司 Page data processing method and device, computer equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106663089A (en) * 2014-06-30 2017-05-10 微软技术许可有限责任公司 Intelligent conflict detection and semantic expression of document edits
CN106648345A (en) * 2015-11-04 2017-05-10 腾讯科技(深圳)有限公司 Data text modification method, terminal and system
CN107659729A (en) * 2017-09-29 2018-02-02 努比亚技术有限公司 A kind of previewing file method, apparatus and computer-readable recording medium
CN107784002A (en) * 2016-08-26 2018-03-09 阿里巴巴集团控股有限公司 The page elements generation method and device of a kind of webpage
CN109710510A (en) * 2018-08-20 2019-05-03 中国平安人寿保险股份有限公司 Code submits method, apparatus, equipment and readable storage medium storing program for executing
CN110688600A (en) * 2019-09-09 2020-01-14 平安普惠企业管理有限公司 Online editing method, device and equipment based on HTML (Hypertext markup language) page and storage medium
US10546047B1 (en) * 2012-09-27 2020-01-28 Open Text Corporation Method and system for stashing of document alteration information for quicker web preview
CN110825426A (en) * 2018-08-09 2020-02-21 阿里巴巴集团控股有限公司 Webpage development method, preview method, release method and development system
CN111428451A (en) * 2020-06-09 2020-07-17 平安国际智慧城市科技股份有限公司 Text online editing method and device, electronic equipment and storage medium
CN111553132A (en) * 2020-04-21 2020-08-18 广州视源电子科技股份有限公司 Data cooperative processing method, device and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10546047B1 (en) * 2012-09-27 2020-01-28 Open Text Corporation Method and system for stashing of document alteration information for quicker web preview
CN106663089A (en) * 2014-06-30 2017-05-10 微软技术许可有限责任公司 Intelligent conflict detection and semantic expression of document edits
CN106648345A (en) * 2015-11-04 2017-05-10 腾讯科技(深圳)有限公司 Data text modification method, terminal and system
CN107784002A (en) * 2016-08-26 2018-03-09 阿里巴巴集团控股有限公司 The page elements generation method and device of a kind of webpage
CN107659729A (en) * 2017-09-29 2018-02-02 努比亚技术有限公司 A kind of previewing file method, apparatus and computer-readable recording medium
CN110825426A (en) * 2018-08-09 2020-02-21 阿里巴巴集团控股有限公司 Webpage development method, preview method, release method and development system
CN109710510A (en) * 2018-08-20 2019-05-03 中国平安人寿保险股份有限公司 Code submits method, apparatus, equipment and readable storage medium storing program for executing
CN110688600A (en) * 2019-09-09 2020-01-14 平安普惠企业管理有限公司 Online editing method, device and equipment based on HTML (Hypertext markup language) page and storage medium
CN111553132A (en) * 2020-04-21 2020-08-18 广州视源电子科技股份有限公司 Data cooperative processing method, device and system
CN111428451A (en) * 2020-06-09 2020-07-17 平安国际智慧城市科技股份有限公司 Text online editing method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CODERZB: "Mac使用SmartSVN 9.2版本多人协作开发时,代码冲突的解决办法", pages 1, Retrieved from the Internet <URL:https://www.jianshu.com/p/0d056c41d304/> *
赵书文;: "浅谈电子表格的协作和共享在教学工作中应用", 信息记录材料, no. 07 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112529719A (en) * 2020-12-18 2021-03-19 中国平安财产保险股份有限公司 Page data processing method and device, computer equipment and storage medium
CN112529719B (en) * 2020-12-18 2023-07-25 中国平安财产保险股份有限公司 Page data processing method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US10686788B2 (en) Developer based document collaboration
CN101395604B (en) For the dynamic search box of web browser
US10055409B2 (en) Method and system for document retrieval with selective document comparison
CN101986292B (en) Method and system for processing forms based on an image
CN108366058B (en) Method, device, equipment and storage medium for preventing traffic hijacking of advertisement operator
JP2022184964A (en) Systems and methods for direct in-browser markup of elements in internet content
US20090313100A1 (en) System and method for previewing search results
US20170083495A1 (en) Method for Modifying Webpage and Apparatus for Modifying Webpage
US20170357486A1 (en) Enhancing a crowdsourced integrated development environment application
CN109451333B (en) Bullet screen display method, device, terminal and system
JP2008181350A (en) Information processing system, information processor and program
US20150007015A1 (en) Execution and display of events in a plurality of web browsers and devices systems and method
JP2014010722A (en) Retrieval device, retrieval method and program
CN105637509A (en) Searching and annotating within images
CN111797351A (en) Page data management method and device, electronic equipment and medium
JP2020522043A5 (en)
CN110941779A (en) Page loading method and device, storage medium and electronic equipment
CN111414727A (en) Method and device for editing header and footer of PDF (Portable document Format) document and electronic equipment
US10372760B2 (en) Building queries directed to objects hosted on clouds
CN113360106B (en) Webpage printing method and device
CN112347324A (en) Document query method and device, electronic equipment and storage medium
CN112579937A (en) Character highlight display method and device
CN112035596A (en) Text submission method, device, equipment and storage medium
WO2023236795A1 (en) Encyclopedia entry processing method and apparatus, and electronic device, medium and program product
US20160275200A1 (en) Information processing apparatus, information processing method, and information processing program

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
CB02 Change of applicant information

Address after: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Technology Holding Co.,Ltd.

Address before: Room 221, 2 / F, block C, 18 Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: Jingdong Digital Technology Holding Co., Ltd

CB02 Change of applicant information