CN106610774B - Webpage table editing method and device - Google Patents

Webpage table editing method and device Download PDF

Info

Publication number
CN106610774B
CN106610774B CN201510697974.4A CN201510697974A CN106610774B CN 106610774 B CN106610774 B CN 106610774B CN 201510697974 A CN201510697974 A CN 201510697974A CN 106610774 B CN106610774 B CN 106610774B
Authority
CN
China
Prior art keywords
editing
cells
key
data
mouse
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510697974.4A
Other languages
Chinese (zh)
Other versions
CN106610774A (en
Inventor
程水强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201510697974.4A priority Critical patent/CN106610774B/en
Publication of CN106610774A publication Critical patent/CN106610774A/en
Application granted granted Critical
Publication of CN106610774B publication Critical patent/CN106610774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for editing a web page table, relates to the technical field of networks, and solves the problem of low efficiency of editing the web page table. The main technical scheme of the invention is as follows: firstly, receiving a webpage table editing instruction, wherein the webpage table editing instruction is used for switching a webpage table from a display state to an editing state, recording a plurality of cells triggered by a mouse button when a preset shortcut key and the mouse button simultaneously trigger instruction exist, and synchronously editing data into other recorded cells when receiving the data edited in any one of the recorded cells. The invention is mainly used for editing the web page table data.

Description

Webpage table editing method and device
Technical Field
The invention relates to the technical field of networks, in particular to a method and a device for editing a web page table.
Background
With the rapid development of network technology, the application of forms in web pages is very common, and web pages forms are already implemented in many business systems. The data in the form can be edited by a user in a form input box needing to be edited, and after the editing button is clicked, a storage button in the form is clicked, so that the work of editing the form data is completed.
At present, if a plurality of cells exist in a web page table and the same editing operation needs to be performed, a user needs to manually edit the plurality of cells respectively, however, the editing operation on the plurality of cells respectively is complicated, and therefore the efficiency of editing the web page table in the prior art is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for editing a web page table, and mainly aim to improve efficiency of editing a web page table.
In order to achieve the purpose, the invention mainly provides the following technical scheme:
in one aspect, an embodiment of the present invention provides a method for editing a web page table, where the method includes:
receiving a web page table editing instruction, wherein the web page table editing instruction is used for switching a web page table from a display state to an editing state;
when a preset shortcut key and a mouse key simultaneous trigger instruction exist, recording a plurality of cells triggered by the mouse key;
when receiving the data edited in any one of the plurality of recorded cells, synchronously editing the data into other recorded cells.
On the other hand, an embodiment of the present invention further provides a web form editing apparatus, where the apparatus includes:
a receiving unit, configured to receive a web form editing instruction, where the web form editing instruction is used to switch a web form from a display state to an editing state;
the recording unit is used for recording a plurality of cells triggered by the mouse button when a preset shortcut key and a mouse button simultaneous triggering instruction exist;
and the editing unit is used for synchronously editing the data into other recorded cells when receiving the data edited in any one of the plurality of recorded cells.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
the embodiment of the invention provides a webpage table editing method and a webpage table editing device. Compared with the prior art that the cells which need the same editing operation are edited one by one, the embodiment of the invention firstly receives a webpage table editing instruction, records a plurality of cells triggered by a mouse button when a preset shortcut key and a mouse button simultaneously trigger instruction exist, and synchronously edits the data into other recorded cells when receiving the data edited in any one of the recorded cells, thereby realizing the synchronous editing of the cells which need the same editing operation and further improving the editing efficiency of the webpage table.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a method for editing a web page table according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for editing a web page form according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating a web form editing apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating another apparatus for editing a web form according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to make the advantages of the technical solutions of the present invention clearer, the present invention is described in detail below with reference to the accompanying drawings and examples.
The embodiment of the invention provides a method for editing a web page table, which comprises the following steps of:
101. a web page form editing instruction is received.
Wherein the web page form editing instruction is used for switching the web page form from a display state to an editing state. In the embodiment of the invention, a form is created in a webpage by using a standard HTML (Hyper Text Markup Language) code, and corresponding form data is displayed according to the service requirement of the webpage form. Before a user edits a form, the form editing button can be clicked to switch the webpage form from a display state to a form editing state, so that the user can conveniently edit cell data, and after the user edits the form data, the form saving button can be clicked to save the modified form data, so that after the form is created in a webpage, 2 buttons are required to be created by using standard HTML codes, namely the form editing button and the form saving button, so that an editing instruction and a saving instruction of the webpage form are realized.
In the embodiment of the invention, the form editing input box is added in the cell of the web page form, and the HTML code of the form input box can be inserted into the DOM of the cell. For example, the cell HTML code is as follows: and the cell HTML code added with the form input box is as follows: < td > < input type ═ text "value ═ china"/> < td >.
102. And when a preset shortcut key and a mouse key simultaneous trigger instruction exist, recording a plurality of cells triggered by the mouse key.
The preset shortcut key may be set according to an actual operation requirement of a user, and may specifically be a Ctrl key, a Shift key, an Alt key, or the like. For example, when the preset shortcut key is pressed by the Ctrl key, it is determined whether the user clicks a form input box in the form cell with the mouse while the Ctrl key is pressed, a global variable Ctrl keydown may be defined, and an initial value of the global variable Ctrl keydown is set to false, where false represents that the Ctrl key is not pressed; when the Ctrl key is pressed, the Ctrl key down value is set to true, which represents that the Ctrl key is pressed, and if the user releases the Ctrl key after pressing the Ctrl key, the Ctrl key down value is set to false, which represents that the Ctrl key is not pressed. Then, in the mouse click event processing function of the form input box, by judging whether the value of the variable Ctrl keydown is true, the detection of the special state of the form input box in the mouse click table when the Ctrl key is pressed can be realized.
In the embodiment of the invention, when the Ctrl key is pressed and the user mouse clicks the form input box in the form, the cell in which the form input box is located needs to be recorded, so that the subsequent synchronous editing of the contents in the multiple cells is realized. It should be noted that, recording the cell selected by the user in the web page table may be implemented by defining a one-dimensional array selected cells, and saving the selected cell in the array.
103. When receiving the data edited in any one of the plurality of recorded cells, synchronously editing the data into other recorded cells.
For the embodiment of the invention, when the user edits data in the form input box in the cell, the user inevitably presses the keyboard keys, so when the user edits data in the form input box, the event can be captured, then the data in the edited form input box is obtained through javascript, and the obtained data is synchronously updated to other selected form input boxes. It should be noted that, because the selected other cells are stored in the one-dimensional array, the form input box corresponding to the selected cells can be obtained from the one-dimensional array through the javascript, and then the edited data is synchronously edited into the other selected form input boxes by using the javascript, so that the edited data in one cell in the web page table can be synchronously updated into the other selected cells.
In the embodiment of the invention, a webpage table editing instruction is received firstly, when a preset shortcut key and a mouse key are triggered simultaneously, a plurality of cells triggered by the mouse key are recorded, and when data edited in any one of the recorded cells is received, the data is synchronously edited into other recorded cells. In the invention, when a plurality of cell data in the web page table need to be modified simultaneously, the effect of synchronously modifying other cell data can be realized only by editing in one cell, thereby improving the editing efficiency of the web page table and optimizing the user experience of editing the web page table data.
The embodiment of the invention provides a webpage table editing method, which comprises the steps of firstly receiving a webpage table editing instruction, wherein the webpage table editing instruction is used for switching a webpage table from a display state to an editing state, recording a plurality of cells triggered by a mouse button when a preset shortcut key and the mouse button simultaneously trigger instruction exist, and synchronously editing data into other recorded cells when receiving the data edited in any one of the recorded cells. Compared with the prior art that the cells which need the same editing operation are edited one by one, the embodiment of the invention firstly receives a webpage table editing instruction, records a plurality of cells triggered by a mouse button when a preset shortcut key and a mouse button simultaneously trigger instruction exist, and synchronously edits the data into other recorded cells when receiving the data edited in any one of the recorded cells, thereby realizing the synchronous editing of the cells which need the same editing operation and further improving the editing efficiency of the webpage table.
An embodiment of the present invention provides another method for editing a web form, as shown in fig. 2, the method includes:
201. a web page form editing instruction is received.
Wherein the web page form editing instruction is used for switching the web page form from a display state to an editing state. In the embodiment of the invention, a form is created in a webpage by using a standard HTML (Hyper Text Markup Language) code, and corresponding form data is displayed according to the service requirement of the webpage form. Before a user edits a form, the form editing button can be clicked to switch the webpage form from a display state to a form editing state, so that the user can conveniently edit cell data, and after the user edits the form data, the form saving button can be clicked to save the modified form data, so that after the form is created in a webpage, 2 buttons are required to be created by using standard HTML codes, namely the form editing button and the form saving button, so that an editing instruction and a saving instruction of the webpage form are realized. In the embodiment of the invention, the cell edit input box is added in the cell of the web page table, and the HTML code of the form input box can be inserted into the cell DOM.
202. And when a preset shortcut key and a mouse key simultaneous trigger instruction exist, recording a plurality of cells triggered by the mouse key.
The preset shortcut key may be set according to an actual operation requirement of a user, and may specifically be a Ctrl key, a Shift key, an Alt key, or the like. For example, when the preset shortcut key is pressed by the Ctrl key, it is determined whether the user clicks a form input box in the form cell with the mouse while the Ctrl key is pressed, a global variable Ctrl keydown may be defined, and an initial value of the global variable Ctrl keydown is false, where false represents that the Ctrl key is not pressed; when the Ctrl key is pressed, the Ctrl key down value is set to true, which represents that the Ctrl key is pressed, and if the user releases the Ctrl key after pressing the Ctrl key, the Ctrl key down value is set to false, which represents that the Ctrl key is not pressed. Then, in the mouse click event processing function of the form input box, by judging whether the value of the variable Ctrl keydown is true, the detection of the special state of the form input box in the mouse click table when the Ctrl key is pressed can be realized.
In the embodiment of the invention, when the Ctrl key is pressed and the user mouse clicks the form input box in the form, the cell in which the form input box is located needs to be recorded, so that the subsequent synchronous editing of the contents in the multiple cells is realized. It should be noted that, recording the cell selected by the user in the web page table may be implemented by defining a one-dimensional array selected cells, and saving the selected cell in the array.
For the embodiment of the present invention, the recording the plurality of cells triggered by the mouse button includes: and recording a plurality of cells triggered by the mouse button through a preset function. In the embodiment of the invention, the premise for realizing the multi-point editing of the web page table is that firstly, form input boxes in a plurality of cells in the table are selected, and the form input boxes needing to be simultaneously edited are selected one by pressing a Ctrl key and clicking by a mouse when the plurality of form input boxes are selected. It should be noted that, in the whole process, a keyboard pressing event and a mouse clicking event need to be monitored, whether a user presses a Ctrl key is judged by monitoring the mouse clicking event, and a form input box in a clicked cell is checked by monitoring the mouse clicking event.
For example, adding the keyboard key press event handling function code to the form input boxes in all cells in the web page form is as follows:
$(“table td input”).each(function(){
$(this).keydown(function(e){
v/writing the code of the service processing after the key press of the keyboard
});
});
For example, adding mouse click event handling function code to the form input boxes in all cells in the form is as follows:
Figure BDA0000828474410000081
for the embodiment of the invention, when the preset shortcut key and the mouse key trigger instruction simultaneously exist, the selected mark is added to the cell triggered by the mouse key. The selected mark is added to the selected form input box, the form input box can be realized by adding a CSS style, the selected mark can be set to be a frame thickening style or other styles, and only the user can conveniently distinguish which cells are selected, so that the embodiment of the invention is not particularly limited. In the embodiment of the invention, after a user presses a Ctrl key and clicks the form input box by a mouse, a selected mark is added to the form input box which is clicked, so that the user can distinguish the selected cells from the cells which are not selected.
Further, the preset shortcut key comprises a plurality of shortcut keys, and the method further comprises: when any shortcut key and mouse key simultaneous trigger instruction exists, recording a plurality of cells triggered by any shortcut key and mouse key simultaneously. The preset shortcut key comprises a plurality of shortcut keys, wherein the shortcut keys are different from each other, specific shortcut keys can be configured according to actual requirements of a user, and if the preset shortcut keys comprise three shortcut keys, the three shortcut keys are respectively: a Ctrl bond, a Shift bond, or an Alt bond, and embodiments of the present invention are not particularly limited. It should be noted that when different shortcut keys and mouse keys are triggered simultaneously, different web page cells are recorded, and a plurality of cells recorded by the same shortcut key and mouse key can be edited synchronously.
For example, in the web page table, the cells recorded by the Ctrl key and the mouse key are: a2, C8, B5; the cells recorded by the Shift key and the mouse key are respectively: c20, C13, B10. The data in cell a2 is modified, the modified data in a2 is modified into cells C8 and B5 synchronously; if the data in cell C20 is modified, the modified data in C20 will be modified into cells C13 and B10 simultaneously.
Furthermore, in the embodiment of the invention, different selected marks are added for the cells recorded by different shortcut keys and mouse keys, and the selected cells are distinguished by the different selected marks.
203. When receiving the data edited in any one of the plurality of recorded cells, synchronously editing the data into other recorded cells.
For the embodiment of the invention, when the user edits data in the form input box in the cell, the user inevitably presses the keyboard keys, so when the user edits data in the form input box, the event can be captured, then the data in the edited form input box is obtained through javascript, and the obtained data is synchronously updated to other selected form input boxes. It should be noted that, because the selected other cells are stored in the one-dimensional array, the form input box corresponding to the selected cells can be obtained from the one-dimensional array through the javascript, and then the edited data is synchronously edited into the other selected form input boxes by using the javascript, so that the edited data in one cell in the web page table can be synchronously updated into the other selected cells.
For the embodiment of the present invention, after recording the plurality of cells simultaneously triggered by any shortcut key and mouse key, the method further includes: and when receiving the data edited in any cell of the multiple cells triggered by any shortcut key and mouse key, synchronously editing the data into other cells recorded according to any shortcut key and mouse key. In the embodiment of the invention, the synchronous editing operation of the cells selected by the same shortcut key and mouse click can be realized by clicking the plurality of recorded cells respectively by different shortcut keys and mice, so that the editing efficiency of the web page table can be improved.
204. And when a webpage table data storage instruction is received, storing the data edited in the plurality of cells triggered by the mouse button.
For the embodiment of the invention, after the data modification work in the webpage form is finished, the user clicks the save button on the form to save the data edited by the form. In the embodiment of the invention, after a webpage table data storage instruction is received, the data edited by the table is sent to the system server side by clicking ajax in the event processing function through a mouse, and the server side updates the data into the database.
205. And switching the webpage table from an editing state to a display state.
In the embodiment of the invention, after the data edited by the form is stored, the state of the form also needs to be restored to the normal display state, each cell in the form contains a form input box when the form is edited, and when the form is restored to the normal display state, the form input box in each cell in the form needs to be deleted, and then the data in the form input box is displayed in the cell.
It should be noted that, deleting the form input box from the form cell only needs to modify the HTML code of the cell, that is, only needs to delete the HTML code of the form input box, for example: the HTML code for a cell in the table in the edit state is as follows: and if the input type is < td > < text' value >: < td > China.
For the embodiment of the present invention, the applicable scenarios are as follows, but not limited to these scenarios, including: after receiving a webpage table editing instruction, switching the webpage table from a display state to an editing state, recording the cells C5, D9, A5 and B18 selected by a user through a shortcut key Ctrl and a mouse button and adding a selected style to the cells when the user selects the cells C5, D9, A5 and B18, synchronously editing the contents in the cell C5 into the cells D9, A5 and B18 when the user edits the data in the cell C5, finally receiving a webpage table data storage instruction, storing the edited data in the cells triggered by the mouse button and switching the webpage table from the editing state to the display state. In the embodiment of the invention, a webpage table editing instruction is received firstly, when a preset shortcut key and a mouse key are triggered simultaneously, a plurality of cells triggered by the mouse key are recorded, and when data edited in any one of the recorded cells are received, the data are synchronously edited into other recorded cells, so that the cells needing the same editing operation are synchronously edited, and the editing efficiency of the webpage table is improved.
The embodiment of the invention provides another webpage table editing method, which comprises the steps of firstly receiving a webpage table editing instruction, wherein the webpage table editing instruction is used for switching a webpage table from a display state to an editing state, recording a plurality of cells triggered by a mouse button when a preset shortcut key and the mouse button simultaneously trigger instruction exist, and synchronously editing data into other recorded cells when receiving the data edited in any one of the recorded cells. Compared with the prior art that the cells which need the same editing operation are edited one by one, the embodiment of the invention firstly receives a webpage table editing instruction, records a plurality of cells triggered by a mouse button when a preset shortcut key and a mouse button simultaneously trigger instruction exist, and synchronously edits the data into other recorded cells when receiving the data edited in any one of the recorded cells, thereby realizing the synchronous editing of the cells which need the same editing operation and further improving the editing efficiency of the webpage table.
Further, an embodiment of the present invention provides an apparatus for editing a web form, as shown in fig. 3, the apparatus includes: a receiving unit 31, a recording unit 32, and an editing unit 33.
The receiving unit 31 is configured to receive a web page table editing instruction, where the web page table editing instruction is used to switch the web page table from the display state to the editing state.
And the recording unit 32 is used for recording a plurality of cells triggered by the mouse button when a preset shortcut key and a mouse button simultaneous triggering instruction exist.
And an editing unit 33, configured to, when receiving data edited in any one of the plurality of recorded cells, synchronously edit the data into other recorded cells.
It should be noted that other corresponding descriptions of the functional units related to the apparatus for editing a web page table provided in the embodiment of the present invention may refer to the corresponding description of the method shown in fig. 1, and are not described herein again.
The embodiment of the invention provides a webpage table editing device, which is characterized by firstly receiving a webpage table editing instruction, wherein the webpage table editing instruction is used for switching a webpage table from a display state to an editing state, recording a plurality of cells triggered by a mouse button when a preset shortcut key and the mouse button simultaneously trigger instruction exist, and synchronously editing data into other recorded cells when receiving the data edited in any one of the recorded cells. Compared with the prior art that the cells which need the same editing operation are edited one by one, the embodiment of the invention firstly receives a webpage table editing instruction, records a plurality of cells triggered by a mouse button when a preset shortcut key and a mouse button simultaneously trigger instruction exist, and synchronously edits the data into other recorded cells when receiving the data edited in any one of the recorded cells, thereby realizing the synchronous editing of the cells which need the same editing operation and further improving the editing efficiency of the webpage table.
Further, another apparatus for editing a web form is provided in an embodiment of the present invention, as shown in fig. 4, the apparatus includes: a receiving unit 41, a recording unit 42, and an editing unit 43.
A receiving unit 41, configured to receive a web page table editing instruction, where the web page table editing instruction is used to switch the web page table from the display state to the editing state.
And the recording unit 42 is used for recording a plurality of cells triggered by the mouse button when a preset shortcut key and a mouse button simultaneous triggering instruction exist.
And an editing unit 43, configured to, when receiving data edited in any one of the plurality of recorded cells, synchronously edit the data into other recorded cells.
The recording unit 42 is specifically configured to record the multiple cells triggered by the mouse button through a preset function.
Further, the apparatus comprises: an adding unit 44.
And the adding unit 44 is used for adding the selected mark to the cell triggered by the mouse button when a preset shortcut key and a mouse button simultaneous triggering instruction exist.
Further, the apparatus further comprises:
and the saving unit 45 is used for saving the data edited in the plurality of cells triggered by the mouse button when receiving a webpage table data saving instruction.
A switching unit 46 for switching the web page table from the editing state to the display state.
Further, the preset shortcut key comprises a plurality of shortcut keys.
The recording unit 42 is specifically configured to record a plurality of cells triggered by any shortcut key and any mouse key simultaneously when there is a command for triggering any shortcut key and any mouse key simultaneously.
The editing unit 43 is specifically configured to, when receiving data edited in any cell of the multiple cells triggered by any shortcut key and mouse key at the same time, synchronously edit the data into other cells recorded according to any shortcut key and mouse key.
It should be noted that other corresponding descriptions of the functional units related to another apparatus for editing a web page table provided in the embodiment of the present invention may refer to the corresponding description of the method shown in fig. 2, and are not described herein again.
The embodiment of the invention provides another webpage table editing device, which comprises a webpage table editing instruction which is used for switching a webpage table from a display state to an editing state, a plurality of cells triggered by a mouse button are recorded when a preset shortcut key and the mouse button trigger instruction simultaneously exist, and data edited in any one of the recorded cells are synchronously edited into other recorded cells when the data are received. Compared with the prior art that the cells which need the same editing operation are edited one by one, the embodiment of the invention firstly receives a webpage table editing instruction, records a plurality of cells triggered by a mouse button when a preset shortcut key and a mouse button simultaneously trigger instruction exist, and synchronously edits the data into other recorded cells when receiving the data edited in any one of the recorded cells, thereby realizing the synchronous editing of the cells which need the same editing operation and further improving the editing efficiency of the webpage table.
The web page table editing device comprises a processor and a memory, wherein the receiving unit, the recording unit, the editing unit, the adding unit, the saving unit, the switching unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, and the editing efficiency of the web page table is improved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The present application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: receiving a web page table editing instruction, wherein the web page table editing instruction is used for switching a web page table from a display state to an editing state; when a preset shortcut key and a mouse key simultaneous trigger instruction exist, recording a plurality of cells triggered by the mouse key; when receiving the data edited in any one of the plurality of recorded cells, synchronously editing the data into other recorded cells.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (12)

1. A method for web page form editing, comprising:
receiving a web page table editing instruction, wherein the web page table editing instruction is used for switching a web page table from a display state to an editing state;
when a preset shortcut key and a mouse key simultaneous trigger instruction exist, recording a plurality of cells triggered by the mouse key;
when receiving the data edited in any one of the plurality of recorded cells, synchronously editing the data into other recorded cells.
2. The method for editing a form on a web page of claim 1, wherein the recording the plurality of cells triggered by the mouse button comprises:
and recording a plurality of cells triggered by the mouse button through a preset function.
3. The method for web form editing of claim 2, further comprising:
and when a preset shortcut key and a mouse key simultaneous trigger instruction exist, adding a selected mark to a cell triggered by the mouse key.
4. The method for web page form editing of claim 3, wherein after synchronously editing the data into other recorded cells, the method further comprises:
when a webpage table data storage instruction is received, storing data edited in a plurality of cells triggered by the mouse button;
and switching the webpage table from an editing state to a display state.
5. The method for editing a form on a web page according to any one of claims 1 to 4, wherein the preset shortcut key comprises a plurality of shortcut keys, and the method further comprises:
when any shortcut key and mouse key simultaneous trigger instruction exists, recording a plurality of cells triggered by any shortcut key and mouse key simultaneously.
6. The method for editing a form on a web page of claim 5, wherein after the step of recording the plurality of cells simultaneously triggered by any shortcut key and the mouse key, the method further comprises the steps of:
and when receiving the data edited in any cell of the multiple cells triggered by any shortcut key and mouse key, synchronously editing the data into other cells recorded according to any shortcut key and mouse key.
7. A web form editing apparatus, comprising:
a receiving unit, configured to receive a web form editing instruction, where the web form editing instruction is used to switch a web form from a display state to an editing state;
the recording unit is used for recording a plurality of cells triggered by the mouse button when a preset shortcut key and a mouse button simultaneous triggering instruction exist;
and the editing unit is used for synchronously editing the data into other recorded cells when receiving the data edited in any one of the plurality of recorded cells.
8. The apparatus for editing web forms of claim 7,
the recording unit is specifically configured to record the multiple cells triggered by the mouse button through a preset function.
9. The apparatus for web form editing of claim 8, wherein the apparatus comprises:
and the adding unit is used for adding the selected mark to the cell triggered by the mouse button when a preset shortcut key and a mouse button simultaneous triggering instruction exist.
10. The apparatus for web form editing of claim 9, wherein the apparatus further comprises:
the storage unit is used for storing the data edited in the plurality of cells triggered by the mouse button when receiving a webpage table data storage instruction;
and the switching unit is used for switching the webpage table from an editing state to a display state.
11. A storage medium, comprising a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the method for editing a web page table according to any one of claims 1 to 6.
12. A processor, configured to run a program, wherein the program is configured to execute the method for editing a web form according to any one of claims 1 to 6 when the program is run.
CN201510697974.4A 2015-10-23 2015-10-23 Webpage table editing method and device Active CN106610774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510697974.4A CN106610774B (en) 2015-10-23 2015-10-23 Webpage table editing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510697974.4A CN106610774B (en) 2015-10-23 2015-10-23 Webpage table editing method and device

Publications (2)

Publication Number Publication Date
CN106610774A CN106610774A (en) 2017-05-03
CN106610774B true CN106610774B (en) 2020-03-31

Family

ID=58613208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510697974.4A Active CN106610774B (en) 2015-10-23 2015-10-23 Webpage table editing method and device

Country Status (1)

Country Link
CN (1) CN106610774B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766310B (en) * 2017-09-26 2021-02-26 杭州迪普科技股份有限公司 Grid cell editing method and device
CN109992758A (en) * 2017-12-29 2019-07-09 阿里巴巴集团控股有限公司 Form processing method, device and terminal device in a kind of webpage
CN110472925A (en) * 2018-05-11 2019-11-19 懿谷智能科技(上海)有限公司 A kind of laboratory test process management system and method based on webpage flow chart
CN111444171B (en) * 2018-12-28 2023-07-14 航天信息股份有限公司 Method, device and storage medium for generating value-added tax payment statement
CN112507673B (en) * 2019-08-26 2023-06-27 珠海金山办公软件有限公司 Method and device for editing form, computer storage medium and terminal
CN111476017B (en) * 2020-06-04 2024-01-30 广东三维家信息科技有限公司 Webpage form editing method and device and electronic equipment
CN113268964B (en) * 2020-07-23 2022-01-18 腾讯科技(深圳)有限公司 Table editing method, device, equipment and storage medium
CN112001157B (en) * 2020-08-26 2021-07-27 湖北盈帆数据技术有限公司 Online design method and device for webpage data form
CN112214978A (en) * 2020-10-10 2021-01-12 金蝶云科技有限公司 Data processing method and related equipment
CN113053508A (en) * 2021-03-29 2021-06-29 深圳市科曼医疗设备有限公司 Interaction control method and device based on touch screen

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1395193A (en) * 2001-07-05 2003-02-05 英业达股份有限公司 Method fro producing dynamic form which can be edited on web page
CN101799831A (en) * 2010-03-15 2010-08-11 深圳市五巨科技有限公司 Method and device for accumulating web page table data
CN103729340A (en) * 2013-12-29 2014-04-16 上海浦东物流云计算有限公司 Method and device for editing table in webpage
CN103970735A (en) * 2013-01-25 2014-08-06 苏州精易会信息技术有限公司 Row-column highlighting method of target cell in webpage Table
CN104239429A (en) * 2014-08-26 2014-12-24 北京航天在线网络科技有限公司 Method and device for editing flowchart in webpage

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2343491A1 (en) * 2001-04-03 2002-10-03 Ibm Canada Limited-Ibm Canada Limitee Method to reduce input parameter interface error and inconsistency for servlets
CN100382023C (en) * 2005-12-07 2008-04-16 北京佳讯飞鸿电气股份有限公司 Realizing method for controlling operation form in data constraint network
CN103823615A (en) * 2012-11-19 2014-05-28 金蝶软件(中国)有限公司 Method and system for displaying table on web page

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1395193A (en) * 2001-07-05 2003-02-05 英业达股份有限公司 Method fro producing dynamic form which can be edited on web page
CN101799831A (en) * 2010-03-15 2010-08-11 深圳市五巨科技有限公司 Method and device for accumulating web page table data
CN103970735A (en) * 2013-01-25 2014-08-06 苏州精易会信息技术有限公司 Row-column highlighting method of target cell in webpage Table
CN103729340A (en) * 2013-12-29 2014-04-16 上海浦东物流云计算有限公司 Method and device for editing table in webpage
CN104239429A (en) * 2014-08-26 2014-12-24 北京航天在线网络科技有限公司 Method and device for editing flowchart in webpage

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
同步文本框内容的JS代码;iteye_3829;《CSDN博客》;20130529;第1-3页 *

Also Published As

Publication number Publication date
CN106610774A (en) 2017-05-03

Similar Documents

Publication Publication Date Title
CN106610774B (en) Webpage table editing method and device
US10699061B2 (en) Application page quick access
CN110058856B (en) Page configuration method and device
CN111428177A (en) Method and system for WEB content generation
CN110020339B (en) Webpage data acquisition method and device based on non-buried point
CN106354483B (en) Data processing method and device and electronic equipment
EP3262497A1 (en) Contextual zoom
KR20160125401A (en) Inline and context aware query box
CN110941428B (en) Website creation method and device
CN108874379B (en) Page processing method and device
CN105279431B (en) Method, device and system for recording operation information in mobile equipment
CN106970758B (en) Electronic document operation processing method and device and electronic equipment
CN105787051A (en) Analysis method and device based on metadata model
WO2017162031A1 (en) Method and device for collecting information, and intelligent terminal
CN109558548B (en) Method for eliminating CSS style redundancy and related product
CN112560403A (en) Text processing method and device and electronic equipment
CN105653145A (en) Method and device for processing display object
CN112256377A (en) Popup window data processing method and device
US9575734B2 (en) System and method for improved light-weight business process modeling in offline mode using browser resources
CN108287643B (en) Page layout adjustment method and device
CN107818000B (en) Operation method and device of page table
CN110990799A (en) Data processing method, device and system for anti-crawler and storage medium
CN104636196B (en) It is a kind of to carry out pattern switching to realize the method and device of page reference
CN111651324A (en) Log collection method and device
CN111125565A (en) Method and equipment for inputting information in application

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

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant