Information interaction method, readable storage medium and electronic device
By using the table editing control and data type conversion function in the note editor, the problem of automatic format changes and data type conversion in the note software during table editing is solved, and the editing efficiency and user experience of online notes are improved.
Patent Information
- Application Number
- CN202010621915.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-30
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-06-30
AI Technical Summary
Existing note-taking software has a single function and is difficult to improve the efficiency of online notes. Especially in table editing, it cannot implement automatic format changes to adapt to the conversion of cell data types.
By using the table editing control in the note editor page to display tables with different data types, allowing users to select and move cell rows, automatically converting and displaying cell data according to the data type of the target table, and displaying error indicators to prompt that the type is inconsistent. matching situation.
Automatic format conversion and movement of different table cell data in online notes is realized, improving editing efficiency and ensuring data type consistency and user experience.
Smart Images

Figure CN111832268B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an information interaction method, a readable storage medium and an electronic device. Background Art
[0002] With the development of the Internet, many application scenarios in work, life, and study can be completed online. As a result, more and more people choose to use note-taking software to assist learning or work to improve efficiency. However, the current note-taking software has a single function, usually only including recording text, inserting tables, pictures and other conventional functions, and does not have the function of further improving the efficiency of users recording online notes. Under the premise of the current diversified functions of terminal devices, simple functions are difficult to give full play to the advantages of online notes. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides an information interaction method, a readable storage medium and an electronic device to automatically change the format of each moved cell when moving cell rows in different tables in online notes, thereby improving the efficiency of editing tables in online notes.
[0004] In a first aspect, an embodiment of the present invention provides an information interaction method, the method comprising:
[0005] Displaying a first table and a second table in a note editor page through a table editing control; wherein the data in each of the cells in the first table and the second table have corresponding data types, the data in each cell in the first table is displayed in a first data type corresponding to the column where the data is located, and the data in each cell in the second table is displayed in a second data type corresponding to the column where the data is located;
[0006] In response to a selection operation, determining a selected cell row in the first table;
[0007] In response to the moving operation, the selected cell row is moved to the second table, and the data of the moved cell is displayed according to the second data type of the corresponding column of the second table.
[0008] Furthermore, displaying the data of the moved cell according to the second data type of the corresponding column of the second table includes:
[0009] In response to the data type corresponding to the data in the moved cell including the second data type corresponding to the corresponding column of the second table, displaying the data in the second data type;
[0010] In response to the data type corresponding to the data in the moved cell not including the second data type corresponding to the corresponding column of the second table, the data is displayed with the first data type corresponding to the column before the move, and an error mark corresponding to the cell is displayed.
[0011] Further, the first table includes a first header row, and the second table includes a second header row;
[0012] The first header row includes at least one first header cell, the second header row includes at least one second header cell, the first header cell and the second header cell are used to define the name and data type of the corresponding column;
[0013] Displaying the first table and the second table through the table editing control includes:
[0014] Displaying the first header row and the columns corresponding to the first header cells therein by using a table editing control; and
[0015] The second header row and the columns corresponding to the second header cells are displayed.
[0016] Furthermore, the table editing control also includes a header editing sub-control;
[0017] The method further comprises:
[0018] Receiving a header name for the selected first header cell or second header cell through the header editing subcontrol;
[0019] The header name is displayed in the first header cell or the second header cell.
[0020] Further, receiving the header name of the selected first header cell or second header cell through the header editing subcontrol includes:
[0021] In response to receiving a trigger instruction of a first header cell or a second header cell, displaying the header edit sub-control at a predetermined position around the corresponding table cell, wherein the header edit sub-control includes a text input box;
[0022] The table header name inputted by receiving the text input box.
[0023] Furthermore, the table editing control also includes a data type conversion sub-control;
[0024] The method further comprises:
[0025] In response to the data type conversion subcontrol being triggered, determining a target data type corresponding to the selected column of the first table or the selected column of the second table;
[0026] The data of each of the cells in the selected column of the first table or the column of the second table are displayed in the target data type.
[0027] Furthermore, the method further comprises:
[0028] In response to the error identifier being selected, an error prompt text corresponding to the error identifier is displayed.
[0029] Furthermore, the method further comprises:
[0030] In response to the note synchronization instruction, the note editor page data is saved to the cloud, and the note editor page data includes the first table, the second table and the error identifier corresponding to the cell.
[0031] In a second aspect, an embodiment of the present invention provides a computer-readable storage medium for storing computer program instructions, wherein the computer program instructions, when executed by a processor, implement the method as described in any one of the first aspects.
[0032] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement a method as described in any one of the first aspects.
[0033] The embodiment of the present invention displays the first table and the second table type having data of corresponding data types in cells through a table editing control in a note editor page, wherein the data in each cell in the first table is displayed as the first data type corresponding to the column in which it is located, and the data in each cell in the second table is displayed as the second data type corresponding to the column in which it is located. After selecting a cell row in the first table and moving it to the second table, the data of the moved cell is displayed according to the second data type of the corresponding column of the second table. The embodiment of the present invention can realize the movement of data in different tables during the process of editing online notes, and by converting the data type of the data in each cell after the move, directly display it as the second data type of the corresponding column, thereby improving the efficiency of editing online notes. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0035] Figure 1 A schematic diagram of an information interaction system to which the information interaction method according to an embodiment of the present invention is applied;
[0036] Figure 2 This is a schematic diagram of a note editor page according to an embodiment of the present invention;
[0037] Figure 3 A schematic diagram of online note transmission according to an embodiment of the present invention;
[0038] Figure 4 is a flow chart of an information interaction method according to an embodiment of the present invention;
[0039] Figure 5 A schematic diagram of a note editor page including a table editing control according to an embodiment of the present invention;
[0040] Figure 6 A schematic diagram of a note editor page for moving a cell row according to an embodiment of the present invention;
[0041] Figure 7 A schematic diagram of a note editor page for editing a header name according to an embodiment of the present invention;
[0042] Figure 8 A schematic diagram of a note editor page for adjusting column data types according to an embodiment of the present invention;
[0043] Fig. 9 Schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The present invention is described below based on embodiments, but the present invention is not limited to these embodiments. In the detailed description of the present invention below, some specific details are described in detail. It is possible for a person skilled in the art to fully understand the present invention without the description of these details. In order to avoid confusing the essence of the present invention, known methods, processes, flows, components and circuits are not described in detail.
[0045] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.
[0046] Unless the context clearly requires otherwise, words such as “include”, “including” and the like in the specification should be interpreted as including rather than being exclusive or exhaustive; that is, as meaning “including but not limited to”.
[0047] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0048] Figure 1 Schematic diagram of an information interaction system using the information interaction method of an embodiment of the present invention. Figure 1 As shown, the information interaction system includes a first terminal device 11, which may be a general data processing terminal capable of running computer programs and having communication functions, such as a smart phone, a tablet computer or a laptop computer.
[0049] The terminal device 11 can perform human-computer interaction with the user 10 through a preset I / O communication interface. The human-computer interaction process is to display a note editor page including a table editing control through the display interface of the first terminal device 11, and the table editing control includes a first table and a second table. After the user 10 selects a cell row in the first table and moves it to the second table, each cell in the moved cell row is displayed according to the data type of the corresponding column of the second table.
[0050] Furthermore, the information interaction system may also include a server 12 of the first terminal device 11 that logs in to the note editor with the corresponding account of the user 10 through the network. The server 12 may be a single server or a server cluster configured in a distributed manner. The server 12 is used to store the result of the human-computer interaction between the first terminal device 11 and the user 10, that is, the final saved note editor page including the table editing control after moving the table cell row, so that the user can also obtain the stored note editor page through the server 10 when changing the terminal device 11. Furthermore, the server 12 can also store the process of human-computer interaction between the first terminal device 11 and the user 10, which is used to locate the faulty operation when fault information occurs.
[0051] In the embodiment of the present invention, the user 10 can bind with the note editor by registering a corresponding account in the note editor, so as to realize the migration of online notes recorded by the user 10 between different terminal devices. For example, when the user 10 first logs in to the note editor through the first terminal device 11 and records online notes, and then logs in to the note editor through the second terminal device 13, the online notes recorded on the first terminal device 11 can be migrated to the second terminal device 13 through the corresponding account of the user 10, so that the user can browse, check, edit and other operations.
[0052] Figure 2 FIG. 1 is a schematic diagram of a note editor page according to an embodiment of the present invention. Figure 2As shown, the note editor page 20 includes a text input control 21 for inputting text content, and an attachment insertion control 22 for inserting file attachments in different formats such as audio, video, picture, table, etc. Among them, the text input control 21 is used to receive text data input by the user, and the attachment insertion control 22 is used to insert attachments of the corresponding format. For example, when the user triggers the smart table insertion sub-control in the attachment insertion control 22, the table editing control is displayed on the note editing page. At the same time, in order to ensure that the online notes recorded by the user in the note editor will not be lost during the migration process of different terminal devices, the note editor page also includes a user login control 23 for logging in to the user account. The user can obtain the online notes recorded in any terminal device by triggering the user login control 23 on different terminal devices.
[0053] Furthermore, the note editing page 20 also includes a note sharing control 24 for different users to share online notes. When the note sharing control 24 is triggered, the corresponding online note can be sent to other terminal devices. The terminal device receiving the online note can be a terminal device logged in by other users, a terminal device logged in by the user sending the online note, and a terminal device with no user logged in.
[0054] Figure 3 FIG. 1 is a schematic diagram of online note transmission according to an embodiment of the present invention. Figure 3 As shown, when the first user 30 and the second user 31 log in to the note editor through the corresponding first user terminal 32 and the second user terminal 33 respectively, the first user 30 and the second user 31 can transmit online notes between the first user terminal 32 and the second terminal device 33 by triggering the note sharing control in the note editing page.
[0055] Specifically, when the first user 30 triggers the note sharing control in the note editing page displayed by the first user terminal 32, the first user terminal 32 may transmit the online note displayed on the note editing page where the note sharing control is located to the second user terminal 33. When the second user 31 triggers the note sharing control in the note editing page displayed by the second user terminal 33, the second user terminal 33 may transmit the online note displayed on the note editing page where the note sharing control is located to the first user terminal 32.
[0056] Figure 4 FIG. 1 is a flow chart of an information interaction method according to an embodiment of the present invention. Figure 4 As shown, the method comprises the following steps:
[0057] Step S100: displaying a first table and a second table in a note editor page through a table editing control.
[0058] Specifically, the note editor page is a front-end page corresponding to the note editor, and is displayed through the display interface of the terminal device on which the note editor is installed. In an embodiment of the present invention, the note editor page is used to generate online notes through human-computer interaction with the user, and may include controls such as a text input control and an attachment insertion control for editing online notes. Among them, the text input control is used to receive text data input by the user, and the attachment insertion control is used to insert attachments into the online notes, and the attachments may include audio, video, pictures, tables, and network links. After the user triggers the table insertion subcontrol in the attachment insertion control by clicking or the like, the table editing control is displayed in the note editor page. The user can trigger the table adding subcontrol in the table editing control to add a table to the online note, and the table is displayed through the table editing control. When the online note needs to add multiple tables, the user can add a corresponding number of tables to the online note by triggering the table adding subcontrol multiple times. In an embodiment of the present invention, the user can add a first table and a second table to the table editing control by triggering the table adding subcontrol in the table editing control twice.
[0059] Furthermore, each cell in the table editing control is used to display corresponding data, and each data has a corresponding data type. The data type may include text, numbers, dates, currencies, percentages, and the like. For example, for the data "text", the corresponding data type that can be displayed is text, for the data "10", the corresponding data types that can be displayed include text, numbers, currencies, and percentages, and for the data "2020 / 2 / 3", the corresponding data types that can be displayed include text, numbers, dates, currencies, and percentages. Optionally, the data type may also include further subdivided sub-data types. For example, for the data type "date", sub-data types for long dates and short dates may be included; for the data type "number", sub-data types for displaying digital integers and displaying N digits after the decimal point may be included; for the data type "currency", sub-data types such as RMB, USD, EUR, and JPY may be included. In an embodiment of the present invention, the data type corresponding to each column of the table inserted in the online note is the same.
[0060] Therefore, when the first table and the second table are displayed in the table editing control, the data in each cell in the first table and the second table have corresponding data types, respectively. The data in each cell in the first table is displayed in the first data type corresponding to the column, and the data in each cell in the second table is displayed in the second data type corresponding to the column.
[0061] In an embodiment of the present invention, each of the tables inserted in the note editor page includes a corresponding header row, and each cell in the header row is a header cell, which is used to define the name and data type of the corresponding column. Therefore, when the table editing control includes a first table and a second table, the first table includes a first header row, and the second table includes a second header row. The first header row includes at least one first header cell, and the second header row includes at least one second header cell, and the first header cell and the second header cell are used to define the name and data type of the corresponding column.
[0062] Displaying the first table and the second table through the table editing control includes displaying the first table header row and the columns corresponding to the first table header cells through the table editing control, and displaying the second table header row and the columns corresponding to the second table header cells through the table editing control.
[0063] Figure 5 FIG. 1 is a schematic diagram of a note editor page including a table editing control according to an embodiment of the present invention. Figure 5 As shown, the note editor page 50 is displayed through a display interface, and is used to receive the note content input by the user through the human-computer interaction port. The note editor page 50 includes a table editing control, which is used to display a first table 51 and a second table 52.
[0064] In the embodiment of the present invention, the first table 51 and the second table 52 respectively include a corresponding first header row, a second header row, and a plurality of table cells 53. The data in each cell 53 in the first table 51 is displayed in the first data type corresponding to the column, and the data in each cell 53 in the second table 52 is displayed in the second data type corresponding to the column. The data type corresponding to each column in the first table 51 can be determined according to the corresponding first header cell, and the data type corresponding to each column in the second table 52 can be determined according to the corresponding second header cell. For example, it is determined that the data type displayed by the data in each cell 53 in the first column of the first table 51 is text, the data type displayed by the data in each cell 53 in the second column is an integer, the data type displayed by the data in each cell 53 in the third column is a percentage, and the data type displayed by the data in each cell 53 in the fourth column is a short date. The data type displayed by the data in each cell 53 in the first column of the second table 52 is a number including two decimal places, the data type displayed by the data in each cell 53 in the second column is text, the data type displayed by the data in each cell 53 in the third column is RMB, and the data type displayed by the data in each cell 53 in the fourth column is a long date.
[0065] Furthermore, the tag editor page 50 also includes a text input control 54 for inputting text data.
[0066] Step S200: In response to a selection operation, determine a selected cell row in the first table.
[0067] Specifically, in addition to adding tables, the table editing control can also perform editing operations on one or more tables. For example, for each table in the note editor page, the table editing control can also perform editing operations such as adding rows, columns, and splitting tables in each table. For at least two tables in the note editor page, the table editing control can also merge different tables into one table, or move at least one cell row or cell column in one table to another table. When moving at least one cell row or cell column of a table in the table editing control, it is necessary to first select the cell row or cell column to be moved in the table.
[0068] In an embodiment of the present invention, at least one cell row in the first table needs to be moved to the second table, so at least one selected cell row to be moved is first determined in the first table. The selection operation can be implemented by a preset selection rule, such as long pressing the cell row to be selected, or double-clicking the cell row to be selected.
[0069] Step S300 , in response to a move operation, the selected cell row is moved to a second table, and data of the moved cell is displayed according to a second data type of a corresponding column of the second table.
[0070] Specifically, after at least one cell row is selected in the first table, the selected cell row is moved to the second table according to the user's moving operation. Before the move, the data of each cell in the cell row is displayed in the first data type corresponding to the column where it is located. Since the second data type corresponding to each column in the second table is not necessarily the same as the first data type corresponding to each column in the first table, the data of each cell in the moved cell row will not match the data type of the corresponding column in the second table. Therefore, after the cell row is moved, the data of the moved cell is displayed according to the second data type of the corresponding column in the second table.
[0071] After moving at least one selected cell row, the data type of the data in each cell in the moved cell row is determined and displayed according to the second data type of the corresponding column of the second table. Wherein, when the data type corresponding to the data in the moved cell includes the second data type corresponding to the corresponding column in the second table after the move, the data in the moved cell is displayed with the second data type. For example, when the data in the moved cell is "10" and the data type corresponding to the corresponding column after the move is RMB, the data in the cell is displayed as "¥10". When the data type corresponding to the data in the moved cell does not include the second data type corresponding to the corresponding column in the second table after the move, the data in the moved cell is displayed with the first data type corresponding to the column before the move. For example, when the data in the moved cell is "text" and the data type corresponding to the corresponding column after the move is a number, the data in the cell is displayed as "text".
[0072] Furthermore, when the data type corresponding to the data in the moved cell does not include the second data type corresponding to the corresponding column in the second table after the move, it proves that the data in the cell after the move does not match the corresponding column in the second table, and the probability of an erroneous operation is very high. Therefore, while displaying the data in the moved cell with the first data type corresponding to the column before the move, a corresponding error mark is also displayed in the cell. Optionally, the error mark can also correspond to an error prompt text. When the error mark is selected, the corresponding error prompt text is displayed to prompt the user that the data type of the data in the cell is wrong, as well as the cause of the error, a solution, etc.
[0073] Figure 6 Schematic diagram of the note editor page for moving a cell row according to an embodiment of the present invention. Figure 6 As shown, the note editor page 60 includes a first table 61 and a second table 62 , and a selected cell row 63 in the first table 61 is moved to the second table 62 .
[0074] Specifically, before moving the cell row 63, the data in the cells of the first column in the cell row 63 is "text", and the first data type displayed is text, the data in the cells of the second column is "10", and the first data type displayed is an integer, the data in the cells of the third column is "100%", and the first data type displayed is percentage, and the data in the cells of the fourth column is "2020 / 2 / 30", and the first data type displayed is a short date.
[0075] After the cell row 63 is moved to the second table 62, since the second data type corresponding to the first column in the second table 62 is a number with two decimal places, and the data type corresponding to the data in the cells in the first column of the cell row 63 is only text, it can only be displayed as "text" in the first data type text before the move, and the corresponding error mark 64 is displayed in the cell. The second data type corresponding to the second column in the second table 62 is text, and the data type corresponding to the data in the cells in the second column of the cell row 63 includes text, so it is displayed as "10" in the second data type text. The second data type corresponding to the third column is RMB, and the data type corresponding to the data in the cells in the third column of the cell row 63 includes RMB, so it is displayed as "¥1" in the second data type RMB. The second data type corresponding to the fourth column is a long date, and the data type corresponding to the data in the cells in the fourth column of the cell row 63 includes a long date, so it is displayed as "February 30, 2020" in the second data type long date.
[0076] In an embodiment of the present invention, in order to realize the intuitive representation of the content of the corresponding column through each header cell in each table in the online note, the table editing control also includes a header editing sub-control for editing the content of the header cell. Therefore, in the case where it is necessary to edit each of the header cells, the information interaction method can receive the header name for the selected first header cell or second header cell through the header editing sub-control, and display the header name in the first header cell or the second header cell. Among them, the header name can be input into the selected first header cell or second header cell by the user through human-computer interaction. The process of editing the header name is to select the corresponding header cell when a trigger instruction of the first header cell or the second header cell is received, and display a header editing sub-control including a text input box at a predetermined position around the table cell. The header name input by the user is received through the text input box, and the header name is displayed in the corresponding header cell.
[0077] Figure 7 Schematic diagram of a note editor page for editing a header name according to an embodiment of the present invention. Figure 7As shown, the first table includes a first header row 70, and the second table includes a second header row 71. Among them, each cell in the first header row 70 is a first header cell 72, and each cell in the second header row 71 is a second header cell 73. When a first header cell 72 in the first header row 70 is selected, a header editing subcontrol including a text input box 74 is displayed at a predetermined position around the selected first header cell 72. The user can input the corresponding header name into the text input box 74 through a predetermined I / O communication interface, and the header name is displayed in the selected first header cell 72 after the input is completed.
[0078] In order to set the data type of each column of the table inserted in the online note, the table editing control also includes a data type conversion subcontrol. Since each header cell in the header row of the table is used to define the name and data type of the corresponding column, in an optional implementation of the embodiment of the present invention, the data type conversion subcontrol can be displayed in the header cell in the header row of each of the tables to define the data type of the corresponding column. The process of defining the data type of the corresponding column is to determine the target data type corresponding to the selected column of the first table or the column of the second table when the data type conversion subcontrol is triggered, and display the data of each cell in the selected column of the first table or the column of the second table with the target data type.
[0079] Figure 8 Schematic diagram of a note editor page for adjusting column data types according to an embodiment of the present invention. Figure 8 As shown, the first table in the table editing control includes a first header row 80, and the first header row 80 includes a plurality of first header cells 81. When a first header cell of a data type to be converted is selected in the first header row, a data type conversion subcontrol 82 is displayed in the selected first header cell. After the user triggers the data type conversion subcontrol 82, a drop-down list 83 of the data type to be determined is displayed at a predetermined position around the data type conversion subcontrol 82. The user can select the target data type corresponding to the column in the drop-down list 83. When the user changes the data type corresponding to the column by triggering the data type conversion subcontrol 82, the data of each cell in the corresponding column is displayed with the changed target data type.
[0080] Since the information interaction method of the embodiment of the present invention is applied to a note editor, in order to prevent the loss of the note content in which the audio data is inserted and to ensure the security of the online notes during the migration process. Upon receiving the note synchronization instruction, the note editor saves the note editor page data to the cloud, and the note editor page data includes the first table, the second table, and the error identifier corresponding to the cell. When the user replaces the terminal device on which the note editor is installed, the user can still obtain the online notes including the first table, the second table, and the cell error identifier through the cloud.
[0081] The embodiment of the present invention can realize data movement between different tables during the process of editing online notes, and directly display the data type of the data in each cell after the movement by converting the data type of the data in the corresponding column, thereby improving the efficiency of editing online notes.
[0082] Fig. 9 Schematic diagram of an electronic device according to an embodiment of the present invention. Fig. 9 As shown, Fig. 9 The electronic device shown is a general address query device, which includes a general computer hardware structure, which at least includes a processor 90 and a memory 91. The processor 90 and the memory 91 are connected via a bus 92. The memory 91 is suitable for storing instructions or programs executable by the processor 90. The processor 90 can be an independent microprocessor or a collection of one or more microprocessors. Thus, the processor 90 executes the instructions stored in the memory 91, thereby executing the method flow of the embodiment of the present invention as described above to realize the processing of data and the control of other devices. The bus 92 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to the display controller 93 and the display device and the input / output (I / O) device 94. The input / output (I / O) device 94 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a somatosensory input device, a printer, and other devices known in the art. Typically, the input / output device 94 is connected to the system through the input / output (I / O) controller 93.
[0083] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices (equipment) or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0084] The present application is described with reference to flowcharts of methods, apparatuses (devices) and computer program products according to embodiments of the present application. It should be understood that each process in the flowchart can be implemented by computer program instructions.
[0085] These computer program instructions may be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device that implements the process Figure 1 A function specified in a process or multiple processes.
[0086] These computer program instructions may also be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce the instructions for implementing the process Figure 1 A device that specifies functions in a process or multiple processes.
[0087] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above method embodiments.
[0088] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0089] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An information interaction method, characterized in that: The method comprises: By triggering the table insert sub-control in the attachment insert control, a table edit control is displayed in a note editor page, where the note editor page is used to generate online notes and includes a text input control and an attachment insert control; Adding a first table and a second table to the online note by triggering a table adding sub-control in the table editing control; Displaying a first table and a second table in a note editor page through a table editing control; wherein the data in each cell in the first table and the second table have corresponding data types, the data in each cell in the first table is displayed in the first data type corresponding to the column, and the data in each cell in the second table is displayed in the second data type corresponding to the column; In response to a selection operation, determining a selected cell row in the first table; In response to the move operation, the selected cell row is moved to a second table, and data of the moved cell is displayed according to a second data type of a corresponding column of the second table; The step of displaying the data of the moved cell according to the second data type of the corresponding column of the second table includes: In response to the data type corresponding to the data in the moved cell including the second data type corresponding to the corresponding column of the second table, displaying the data in the second data type; In response to the data type corresponding to the data in the moved cell not including the second data type corresponding to the corresponding column of the second table, displaying the data in the moved cell with the first data type corresponding to the column before the move, and displaying an error mark corresponding to the cell; Wherein, receiving the header name of the selected first header cell or second header cell through the header editing subcontrol in the table editing control; The header name is displayed in the first header cell or the second header cell.
2. The method according to claim 1, characterized in that The first table includes a first header row, and the second table includes a second header row; The first header row includes at least one first header cell, the second header row includes at least one second header cell, the first header cell and the second header cell are used to define the name and data type of the corresponding column; Displaying the first table and the second table through the table editing control includes: Displaying the first header row and the columns corresponding to the first header cells therein by using a table editing control; as well as The second header row and the columns corresponding to the second header cells are displayed.
3. The method according to claim 1, characterized in that Receiving the header name of the selected first header cell or second header cell through the header editing subcontrol includes: In response to receiving a trigger instruction of a first header cell or a second header cell, displaying the header edit sub-control at a predetermined position around the corresponding table cell, wherein the header edit sub-control includes a text input box; The table header name inputted by receiving the text input box.
4. The method according to claim 1, characterized in that: The table editing control also includes a data type conversion sub-control; The method further comprises: In response to the data type conversion subcontrol being triggered, determining a target data type corresponding to the selected column of the first table or the selected column of the second table; The data of each of the cells in the selected column of the first table or the column of the second table are displayed in the target data type.
5. The method according to claim 1, characterized in that The method further comprises: In response to the error identifier being selected, an error prompt text corresponding to the error identifier is displayed.
6. The method according to claim 1, characterized in that The method further comprises: In response to the note synchronization instruction, the note editor page data is saved to the cloud, and the note editor page data includes the first table and the second table.
7. A computer-readable storage medium for storing computer program instructions, characterized in that: The computer program instructions implement the method according to any one of claims 1 to 6 when executed by a processor.
8. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1 to 6.
