A method and device for dynamically adjusting a web page table
By acquiring user preferences and controlling a parameter library, the blocks, rows, columns, and positions of webpage tables are dynamically adjusted, solving the problem of webpage tables failing to match user needs and achieving flexible and efficient table adjustments.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN COMTOP INFORMATION TECH
- Filing Date
- 2022-12-13
- Publication Date
- 2026-05-05
AI Technical Summary
The existing web page forms cannot be dynamically adjusted according to the user's usage preferences, resulting in a failure to match the user's usage needs.
By obtaining users' form usage preferences, and based on a pre-defined library of form components and control parameters, the content of web page forms is generated and adjusted, including blocks, rows, columns, positions, and functional operations.
It enables flexible adjustment of web page tables, improves the matching accuracy and adjustment efficiency of web page tables, and enhances users' work efficiency.
Smart Images

Figure CN116204747B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of dynamic table adjustment technology, and in particular to a method and apparatus for dynamically adjusting web page tables. Background Technology
[0002] With the rapid development of information technology, spreadsheets are becoming increasingly useful in users' daily work. Editing and using spreadsheets through online web pages or applications on communication terminals (such as mobile phones and computers) allows users to record, store, process, and summarize data, effectively improving their data processing capabilities and thus increasing work efficiency.
[0003] In practical applications, online web pages often generate corresponding table components based on fixed data on the page, and then use these components to create web page tables. However, web page tables generated by such components cannot dynamically adjust their content according to the user's preferences, resulting in tables that fail to meet the user's needs. Therefore, providing a table adjustment method that can dynamically adjust the content of web page tables according to the user's preferences, thereby ensuring that the generated web page tables match the user's requirements, is particularly important. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide a method and apparatus for dynamically adjusting web page tables, which can dynamically adjust the content of web page tables according to the user's usage intentions, so that the generated web page tables can match the user's usage needs.
[0005] To address the aforementioned technical problems, the first aspect of this invention discloses a method for dynamically adjusting webpage tables, the method comprising:
[0006] Obtain users' willingness to use forms;
[0007] Based on the user's form usage intention and the pre-determined form components of the target webpage, generate the webpage form of the target webpage;
[0008] Based on the user's form usage intention, at least one control parameter is called from the pre-determined control parameter library of the target webpage;
[0009] Based on all the control parameters invoked, the corresponding table adjustment operations are performed on the web page table.
[0010] As an optional implementation, in the first aspect of the invention, before obtaining the user's form usage intention, the method further includes:
[0011] Obtain the external programming file of the target webpage, wherein the external programming file is used to indicate a programming file defined outside the target webpage;
[0012] By using preset webpage tags, the association between the external programming file and the target webpage is established;
[0013] The table component of the target webpage is determined by the external programming file and the association relationship. The table component includes a table block sub-component, a table row and column sub-component, and a table drag-and-drop sub-component.
[0014] As an optional implementation, in the first aspect of the invention, after determining the table component of the target webpage through the external programming file and the association relationship, the method further includes:
[0015] The target webpage generates at least one table block and block control parameters corresponding to each table block through the table block sub-component of the target webpage. The table block is used to place any number of webpage tables, and the block control parameters are used to instruct the corresponding table block to perform at least one of the following operations: block labeling, block display, and block hiding.
[0016] As an optional implementation, in the first aspect of the present invention, generating the webpage table of the target webpage based on the user's form usage intention and pre-determined form components of the target webpage includes:
[0017] Based on the user's table usage intention and the table row and column sub-components, determine the row and column parameters of the generated web page table. The row and column parameters include at least one of the following: number of rows and columns, row and column distance, and table header annotation.
[0018] Based on the user's table usage intention and the table drag-and-drop sub-component, the position parameters for generating the webpage table are determined. The position parameters are used to indicate the webpage position for generating the webpage table, and the webpage position is located in any pre-determined table block of the target webpage.
[0019] A webpage table for the target webpage is generated based on the row and column parameters and the position parameters.
[0020] As an optional implementation, in the first aspect of the invention, before calling at least one control parameter from a pre-determined control parameter library of the web page form according to the user's form usage intention, the method further includes:
[0021] Based on the external programming file and the table component, a control parameter library for the target webpage is generated, the control parameter library including a function control parameter sub-library and / or an operation column control parameter sub-library;
[0022] And, generating the control parameter library for the target webpage based on the external programming file and the table component includes:
[0023] The business scenario of the web page table is determined by the row and column parameters and / or position parameters of the web page table that are predetermined by the table component.
[0024] Based on the business scenario and the external programming file, a function control parameter sub-library is generated for the target webpage. The function control parameter sub-library includes at least one control parameter, and any one of the control parameters in the function control parameter sub-library is used to indicate the execution of a function adjustment operation on at least one cell in the webpage table. The function adjustment operation includes at least one of splitting / merging, adding, and deleting operations.
[0025] As an optional implementation, in the first aspect of the present invention, generating the control parameter library of the target webpage based on the external programming file and the table component includes:
[0026] Based on the business scenario predetermined by the web page table, determine whether the web page table meets the preset attachment conditions;
[0027] When it is determined that the webpage table meets the preset attachment conditions, the operation column of the webpage table is generated;
[0028] Based on the business scenario, the operation column, and the external programming file, an operation column control parameter sub-library is generated for the target webpage. The operation column control parameter sub-library includes at least one control parameter, and any one of the control parameters in the operation column control parameter sub-library is used to instruct the operation column to perform an operation of adding or deleting attachments on at least one cell in the webpage table.
[0029] As an optional implementation, in the first aspect of the invention, after controlling the execution of corresponding table adjustment operations on the webpage table according to all the invoked control parameters, the method further includes:
[0030] The idle time of the webpage table is timed using a preset timing component of the target webpage, and the idle time is used to indicate the time that the webpage table has been in an idle state.
[0031] Real-time determination of whether the idle time exceeds a preset idle time threshold;
[0032] When it is determined that the idle time is greater than the preset idle time threshold, the verification control parameters of the web page table are generated. The verification control parameters include at least one of space verification, character verification, text verification and format verification.
[0033] Based on the verification control parameters, relevant verification operations are performed on the web page table.
[0034] A second aspect of the present invention discloses a device for dynamically adjusting a webpage table, the device comprising:
[0035] The acquisition module is used to obtain the user's willingness to use the form;
[0036] The generation module is used to generate a webpage table for the target webpage based on the user's form usage intention and the pre-determined table components of the target webpage.
[0037] The calling module is used to call at least one control parameter from a pre-determined control parameter library on the target webpage according to the user's form usage intention;
[0038] The control execution module is used to control the corresponding table adjustment operation to be performed on the web page table according to all the control parameters invoked by the calling module.
[0039] As an optional implementation, in a second aspect of the invention, the acquisition module is further configured to:
[0040] Before obtaining the user's form usage intention, obtain the external programming file of the target webpage, which is used to indicate the programming file defined outside the target webpage;
[0041] The device also includes:
[0042] The association module is used to establish an association between the external programming file and the target webpage through preset webpage tags;
[0043] The determination module is used to determine the table component of the target webpage through the external programming file and the association relationship. The table component includes a table block sub-component, a table row and column sub-component, and a table drag-and-drop sub-component.
[0044] As an optional implementation, in a second aspect of the invention, the generation module is further configured to:
[0045] After the determining module determines the table component of the target webpage through the external programming file and the association relationship, it generates at least one table block of the target webpage and block control parameters corresponding to each table block through the table block sub-component of the target webpage. The table block is used to place any number of webpage tables, and the block control parameters are used to instruct at least one operation of block labeling, block display, and block hiding to be performed on the corresponding table block.
[0046] As an optional implementation, in a second aspect of the present invention, the method by which the generation module generates the webpage table of the target webpage based on the user's table usage intention and the pre-determined table components of the target webpage specifically includes:
[0047] Based on the user's table usage intention and the table row and column sub-components, determine the row and column parameters of the generated web page table. The row and column parameters include at least one of the following: number of rows and columns, row and column distance, and table header annotation.
[0048] Based on the user's table usage intention and the table drag-and-drop sub-component, the position parameters for generating the webpage table are determined. The position parameters are used to indicate the webpage position for generating the webpage table, and the webpage position is located in any pre-determined table block of the target webpage.
[0049] A webpage table for the target webpage is generated based on the row and column parameters and the position parameters.
[0050] As an optional implementation, in a second aspect of the invention, the generation module is further configured to:
[0051] Before the calling module calls at least one control parameter from the pre-determined control parameter library of the web page table according to the user's table usage intention, the control parameter library of the target web page is generated according to the external programming file and the table component. The control parameter library includes a function control parameter sub-library and / or an operation column control parameter sub-library.
[0052] Furthermore, the method by which the generation module generates the control parameter library of the target webpage based on the external programming file and the table component specifically includes:
[0053] The business scenario of the web page table is determined by the row and column parameters and / or position parameters of the web page table that are predetermined by the table component.
[0054] Based on the business scenario and the external programming file, a function control parameter sub-library is generated for the target webpage. The function control parameter sub-library includes at least one control parameter, and any one of the control parameters in the function control parameter sub-library is used to indicate the execution of a function adjustment operation on at least one cell in the webpage table. The function adjustment operation includes at least one of splitting / merging, adding, and deleting operations.
[0055] As an optional implementation, in a second aspect of the present invention, the method by which the generation module generates the control parameter library of the target webpage based on the external programming file and the table component specifically includes:
[0056] Based on the business scenario predetermined by the web page table, determine whether the web page table meets the preset attachment conditions;
[0057] When it is determined that the webpage table meets the preset attachment conditions, the operation column of the webpage table is generated;
[0058] Based on the business scenario, the operation column, and the external programming file, an operation column control parameter sub-library is generated for the target webpage. The operation column control parameter sub-library includes at least one control parameter, and any one of the control parameters in the operation column control parameter sub-library is used to instruct the operation column to perform an operation of adding or deleting attachments on at least one cell in the webpage table.
[0059] As an optional implementation, in a second aspect of the invention, the apparatus further includes:
[0060] The timing module is used to time the idle time of the webpage table after the control execution module controls the corresponding table adjustment operation to be performed on the webpage table according to all the control parameters called. The idle time is used to indicate the time that the webpage table has been in an idle state.
[0061] The judgment module is used to determine in real time whether the idle time is greater than a preset idle time threshold.
[0062] The generation module is further configured to generate verification control parameters for the web page table when the judgment module determines that the idle time is greater than the preset idle time threshold. The verification control parameters include at least one of space verification, character verification, text verification, and format verification.
[0063] The control execution module is also used to control the execution of relevant verification operations on the web page table according to the verification control parameters.
[0064] A third aspect of the present invention discloses another device for dynamically adjusting web page tables, the device comprising:
[0065] Memory containing executable program code;
[0066] A processor coupled to the memory;
[0067] The processor calls the executable program code stored in the memory to execute the dynamic adjustment method for web page tables disclosed in the first aspect of the present invention.
[0068] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute the dynamic adjustment method for web page tables disclosed in the first aspect of the present invention.
[0069] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0070] In this embodiment of the invention, the user's form usage intention is obtained; based on the user's form usage intention and the pre-determined form components of the target webpage, a webpage form for the target webpage is generated; based on the user's form usage intention, at least one control parameter is called from a pre-determined control parameter library of the target webpage; based on all called control parameters, corresponding form adjustment operations are performed on the webpage form. Therefore, implementing this invention can dynamically adjust the content of the webpage form according to the user's usage intention, improving the flexibility of webpage form adjustment, thereby enabling the generated webpage form to match the user's usage needs; it can provide different control parameters to improve the efficiency of webpage form adjustment, thereby improving the user's work efficiency when performing form-related tasks. Attached Figure Description
[0071] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0072] Figure 1 This is a flowchart illustrating a method for dynamically adjusting a webpage table according to an embodiment of the present invention;
[0073] Figure 2 This is a flowchart illustrating another method for dynamically adjusting webpage tables disclosed in an embodiment of the present invention;
[0074] Figure 3 This is a schematic diagram of the structure of a dynamic adjustment device for a web page table disclosed in an embodiment of the present invention;
[0075] Figure 4 This is a schematic diagram of another dynamic adjustment device for web page tables disclosed in an embodiment of the present invention;
[0076] Figure 5 This is a schematic diagram of the structure of another dynamic adjustment device for web page tables disclosed in an embodiment of the present invention. Detailed Implementation
[0077] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0078] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.
[0079] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0080] This invention discloses a method and apparatus for dynamically adjusting webpage tables. It can generate corresponding webpage tables based on the user's desired table usage, and dynamically adjust the webpage tables by calling different control parameters from a corresponding control parameter library according to the user's desired usage. This allows for dynamic adjustment of the webpage table content according to the user's usage preferences, thereby improving the matching degree between the webpage table and the user's needs. It also provides different control parameters to meet the diverse webpage table adjustment needs of users, thereby improving the user's work efficiency when performing table-related tasks. Detailed descriptions follow.
[0081] Example 1
[0082] Please see Figure 1 , Figure 1This is a flowchart illustrating a method for dynamically adjusting a webpage table according to an embodiment of the present invention. Figure 1 The described method for dynamically adjusting webpage tables can be applied to everyday webpages that require table adjustments, such as webpages used for assignments and statistical analysis of corresponding data. This invention does not limit the scope of the application. Optionally, this method can be implemented by a table adjustment system, which can be integrated into the relevant website or exist independently of the website. It can also be a local server or cloud server used to process the dynamic adjustment of webpage tables. This invention does not limit the scope of the application. Figure 1 As shown, the dynamic adjustment method for the webpage table can include the following operations:
[0083] 101. Obtain the user's willingness to use the form.
[0084] In this embodiment of the invention, optionally, the method of obtaining a user's form usage intention may include: obtaining the form usage intention actively provided by the user, that is, the user manipulates the target page through operation methods such as cursor, touch, etc., so that the target page can determine the parameters corresponding to the user's form usage intention; and obtaining the user's form usage intention by recording the user and their daily form operation habits in big data. For example, the user's occupation (such as student, teacher, accountant, operations specialist, etc.), the form mode used by the user in daily life, the form adjustment function they are used to, etc., can be obtained, and then the user's form usage intention can be derived through big data adjustment.
[0085] 102. Generate the webpage table for the target webpage based on the user's table usage intentions and the pre-determined table components of the target webpage.
[0086] In an embodiment of the present invention, optionally, the table component is used to generate a web page table that conforms to the user's table usage preferences. For example, the table component can generate a specific number of rows and columns (e.g., a table with 4 rows and 3 columns, a table with 5 rows and 5 columns, etc.), row and column distances, table header labels, etc., based on the user's table usage preferences. It can also move the generated web page table to the web page position desired by the user.
[0087] 103. Based on the user's form usage preferences, call at least one control parameter from the pre-defined control parameter library on the target webpage.
[0088] In this embodiment of the invention, optionally, the pre-determined control parameter library of the target webpage includes at least one control parameter, and each control parameter is used to instruct different table adjustment operations to be performed on the target webpage and / or the aforementioned generated webpage table. These table adjustment operations include, for example, editing text and / or characters, merging cells, splitting cells, inserting rows and columns at different positions, adjusting labels, deleting cells and / or rows and columns, deleting tables, hiding or showing webpage blocks and / or webpage tables, etc. Further optionally, each control parameter has its corresponding function name and corresponding visual button, which can trigger the visual button to call the corresponding control parameter according to the user's table usage intention. For example, the function name and corresponding visual button of each control parameter are integrated into a function box displayed by clicking the cursor (where at least one function name can be viewed), and clicking the button area corresponding to the function name triggers the operation of calling the corresponding control parameter.
[0089] 104. Based on all the control parameters called, control the corresponding table adjustment operations to be performed on the web page table.
[0090] In this embodiment of the invention, specifically, different table adjustment operations can be performed on the web page table simultaneously based on all the control parameters called. For example, the user can use the computer cursor to select multiple positions in the corresponding web page table to insert rows or columns, etc.
[0091] As can be seen, implementing the embodiments of the present invention can dynamically adjust the content of the web page table according to the user's usage intention, improve the flexibility of web page table adjustment, and thus enable the generated web page table to match the user's usage needs; it can provide different control parameters to improve the adjustment efficiency of the web page table, thereby improving the user's work efficiency when performing table-related tasks.
[0092] In an optional embodiment, before obtaining the user's form usage intention in step 101 above, the method further includes:
[0093] Retrieve the external programming file of the target webpage. The external programming file is used to indicate the programming file defined outside the target webpage.
[0094] By pre-setting webpage tags, a relationship is established between external programming files and target webpages;
[0095] The table components of the target webpage are determined by external programming files and relationships. The table components include table block sub-components, table row and column sub-components, and table drag-and-drop sub-components.
[0096] In this optional embodiment, the predefined external programming file can be stored in a location other than the target webpage. This location can be the computer's internal memory, external memory (e.g., floppy disk, floppy drive, hard disk, etc.), or it can be stored in the cloud or on a web server; no limitation is made here. Further optionally, the content of the external programming file includes a programming language (e.g., JavaScript, Java, C++, etc.) capable of assisting or directly generating corresponding table components. The external programming file can be introduced into the target webpage as a front-end file using preset webpage tags. For example, when the external programming file is a standalone JavaScript file, it can be included in the target webpage's HTML file using preset webpage tags (e.g., the src attribute of the script tag); alternatively, the JavaScript file can be wrapped in a `<script>` tag within the HTML file to achieve the effect of being included in the target webpage.
[0097] In this optional embodiment, the table block sub-component is optionally used to generate table blocks of the target webpage and block control parameters corresponding to the table blocks; the table row and column sub-component is used to determine the row and column parameters of the webpage table to be generated; the table drag sub-component is used to determine the position information of the webpage table to be generated, and is also used to perform drag operations on the generated webpage table and / or table blocks, thereby changing the position of the generated webpage table and / or table blocks in the target webpage, etc.
[0098] As can be seen, this optional embodiment can import defined external programming files into the target webpage to determine the table block sub-components, table row and column sub-components, and table drag-and-drop sub-components of the target webpage. It can flexibly adjust the relevant programming language, avoid the phenomenon of hardcoding fixed data in the target webpage, improve the flexibility and reliability of the relevant table components, and thus diversify the adjustment functions of the webpage table.
[0099] In another alternative embodiment, after determining the table component of the target webpage through external programming files and associations, the method further includes:
[0100] The target webpage generates at least one table block and corresponding block control parameters for each table block using the table block sub-component of the target webpage. The table block is used to place any number of webpage tables, and the block control parameters are used to instruct the corresponding table block to perform at least one of the following operations: block labeling, block display, and block hiding.
[0101] In this optional embodiment, the multiple table blocks can be arranged in page positions according to the user's preferences, or they can be automatically arranged according to the application scenario of the webpage. Further optionally, each table block can contain any number of webpage tables, and when a block is shown or hidden, all webpage tables placed in that table block will also be shown or hidden accordingly.
[0102] As can be seen, this optional embodiment can generate at least one table block of the target webpage through the table block sub-component for the webpage table to be placed, and can place different webpage table blocks, thereby making it easier for users to organize and use the webpage table, thereby improving the efficiency of users in adjusting the webpage table.
[0103] In another optional embodiment, step 102 above generates a webpage table for the target webpage based on the user's table usage intention and the pre-determined table components of the target webpage, including:
[0104] Based on the user's desired use of the table and the table row and column sub-components, determine the row and column parameters for the generated webpage table;
[0105] The position parameters for generating the webpage table are determined based on the user's desired use of the table and the table drag-and-drop sub-components.
[0106] Generate a webpage table for the target webpage based on row, column, and position parameters.
[0107] In this optional embodiment, optionally, based on the user's table usage preferences and through the table row and column sub-component, at least one of the following is determined: the number of rows and columns, the row-column spacing, and the table header annotations of the webpage table to be generated. Further optionally, based on the user's table usage preferences and the table row and column sub-components, several of the user's preferred tables are determined, and these preferred tables are scaled within a specific page area. For example, when a user is accustomed to using a 3-row, 4-column table with specific header annotations, this 3-row, 4-column table with specific header annotations is determined as the user's preferred table, and this preferred table is scaled within a specific page area. When the user needs to use this preferred table again, they can simply retrieve it directly from that specific page area.
[0108] In this optional embodiment, the location parameter may be used to indicate the location of the webpage in which the webpage table is generated, and the webpage location is located in any pre-determined table block of the target webpage.
[0109] As can be seen, this optional embodiment can determine the row and column parameters and position parameters of the generated web page table based on the user's table usage intention, the table row and column sub-components, and the table drag-and-drop sub-components, thereby generating the corresponding web page table. This can improve the flexibility of generating web page tables and enable the generated web page tables to match the user's usage needs.
[0110] Example 2
[0111] Please see Figure 2 , Figure 2 This is a flowchart illustrating a method for dynamically adjusting a webpage table according to an embodiment of the present invention. Figure 2 The described method for dynamically adjusting webpage tables can be applied to everyday webpages that require table adjustments, such as webpages used for assignments and statistical analysis of corresponding data. This invention does not limit the scope of the application. Optionally, this method can be implemented by a table adjustment system, which can be integrated into the relevant website or exist independently of the website. It can also be a local server or cloud server used to process the dynamic adjustment of webpage tables. This invention does not limit the scope of the application. Figure 2 As shown, the dynamic adjustment method for the webpage table can include the following operations:
[0112] 201. Obtain the user's willingness to use the form.
[0113] 202. Generate the webpage table for the target webpage based on the user's table usage intentions and the pre-determined table components of the target webpage.
[0114] 203. Generate the control parameter library for the target webpage based on the external programming files and table components.
[0115] In this embodiment of the invention, optionally, the control parameter library includes a function control parameter sub-library and / or an operation column control parameter sub-library. The function control parameter sub-library includes at least one control parameter, and any control parameter in the function control parameter sub-library is used to instruct at least one cell in the generated webpage table to perform a function adjustment operation, including at least one of splitting / merging, adding, and deleting operations. The operation column control parameter sub-library includes at least one control parameter, and any control parameter in the operation column control parameter sub-library is used to instruct a predetermined operation column to perform an add or delete attachment operation on at least one cell in the webpage table. Further optionally, the attachment can be a file associated with the computer's local storage or a file uploaded to the target webpage's cloud storage; this is not limited here.
[0116] 204. Based on the user's form usage preferences, call at least one control parameter from the pre-defined control parameter library on the target webpage.
[0117] 205. Based on all the control parameters called, control the corresponding table adjustment operations to be performed on the web page table.
[0118] In this embodiment of the invention, for other descriptions of steps 201-202 and steps 204-205, please refer to the detailed description of steps 101-104 in Embodiment 1. This embodiment of the invention will not repeat them.
[0119] As can be seen, implementing the embodiments of the present invention can dynamically adjust the content of webpage tables according to the user's usage intentions, improving the flexibility of webpage table adjustments and enabling the generated webpage tables to match the user's usage needs; it can provide different control parameters to improve the adjustment efficiency of webpage tables, thereby improving the user's work efficiency when performing table-related tasks; it can classify control parameters into sub-libraries according to specific attributes, which is beneficial for calling the corresponding control parameter sub-libraries as needed when adjusting webpage tables, thereby reducing the occupation of target webpage space resources during the execution of the calling operation, and thus improving the adjustment efficiency of webpage tables.
[0120] In an optional embodiment, step 203 above generates a control parameter library for the target webpage based on external programming files and table components, including:
[0121] The business scenario of the web page table is determined by the row and column parameters and / or position parameters of the web page table in advance by the table component;
[0122] Based on the business scenario and external programming files, generate a sub-library of functional control parameters for the target webpage.
[0123] In this optional embodiment, the business scenario may refer to the business purpose of the target webpage and the webpage tables within it, such as a webpage related to data statistics or accounting. Further optionally, based on the business scenario of the target webpage and external programming files, a functional control sub-library matching the business scenario is generated. For example, if the business scenario of the target webpage is a webpage related to data statistics, then control parameters in the functional control parameter sub-library can be generated or expanded through the corresponding external programming files; that is, the expanded control parameters are related to the calculation formulas for data statistics.
[0124] As can be seen, this optional embodiment can generate a sub-library of functional control parameters adapted to the business scenario of the target webpage and external programming files, which can meet the webpage table organization needs of different business scenarios, thereby improving the applicability and comprehensiveness of the present invention.
[0125] In another optional embodiment, step 203 above generates a control parameter library for the target webpage based on external programming files and table components, including:
[0126] Based on the pre-determined business scenario of the web page table, determine whether the web page table meets the preset attachment conditions;
[0127] When it is determined that the webpage table meets the preset attachment conditions, the operation column of the webpage table is generated;
[0128] Based on the business scenario, operation columns, and external programming files, generate a sub-library of operation column control parameters for the target webpage.
[0129] In this optional embodiment, the preset attachment conditions can be set according to the user's own wishes, or the website administrator can set them according to the business scenario of the target webpage and its corresponding business needs, or the target webpage can automatically set them according to the user's webpage table usage records.
[0130] In this optional embodiment, the operation column is optionally placed on one side of the web page table. The operation column has built-in buttons that can trigger the call of relevant control parameters for adding or deleting attachments (the relevant control parameters for adding or deleting attachments are stored in the operation column control parameter sub-library). When the user needs to add or delete attachments, he / she only needs to select at least one cell and trigger the relevant button.
[0131] As can be seen, this optional embodiment can generate the operation column of the web page table when the web page table meets the preset attachment conditions, and then generate its corresponding operation column control parameter sub-library, which can meet the user's needs for the web page table attachment function, and thus enable the generated web page table to match the user's usage needs.
[0132] In yet another optional embodiment, after step 205 above, which controls the corresponding table adjustment operation on the webpage table based on all the invoked control parameters, the method further includes:
[0133] The idle time of the webpage table is timed using the preset timing component of the target webpage. The idle time is used to indicate the time that the webpage table has been idle.
[0134] Real-time determination of whether the idle time exceeds the preset idle time threshold;
[0135] When the idle time is determined to be greater than the preset idle time threshold, the validation control parameters of the web page table are generated.
[0136] Based on the validation control parameters, control the execution of relevant validation operations on the web page tables.
[0137] In this optional embodiment, the verification control parameters may include at least one of space verification, character verification, text verification, and format verification. Further optionally, after the verification control parameters have completed the relevant verification operations on the webpage table, table content that does not meet the verification results is marked and the user is prompted to modify it.
[0138] In this optional embodiment, the idle state of a webpage table can refer to the state when the webpage table has been adjusted or when the user does not need to adjust it temporarily. Further optionally, the preset idle time threshold can be set by the user or automatically set by the target webpage based on the user's webpage table usage history; this is not limited here.
[0139] As can be seen, this optional embodiment can generate corresponding verification control parameters to control the relevant verification operations on the web page table when the idle time of the web page table exceeds a preset idle time threshold. It can mark and prompt users to modify table content that does not meet the verification results, which helps users to fill in the gaps in the table content, thereby improving the accuracy of the table content and thus improving user satisfaction with the table adjustment service.
[0140] Example 3
[0141] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a dynamic adjustment device for a webpage table disclosed in an embodiment of the present invention. Figure 3 As shown, the dynamic adjustment device for the webpage table may include:
[0142] Module 301 is used to obtain the user's intention to use the form;
[0143] The generation module 302 is used to generate a webpage table for the target webpage based on the user's table usage intentions and the pre-determined table components of the target webpage.
[0144] Module 303 is used to call at least one control parameter from a pre-determined control parameter library on the target webpage according to the user's form usage intention.
[0145] The control execution module 304 is used to control the corresponding table adjustment operation to be performed on the web page table according to all the control parameters called by the calling module 303.
[0146] It is evident that implementation Figure 3 The described dynamic adjustment device for web page tables can dynamically adjust the content of web page tables according to the user's wishes, improving the flexibility of web page table adjustments and enabling the generated web page tables to match the user's needs; it can provide different control parameters to improve the adjustment efficiency of web page tables, thereby improving the user's work efficiency when performing table-related tasks.
[0147] In an optional embodiment, the acquisition module 301 described above is further configured to:
[0148] Before obtaining the user's form usage intention, obtain the external programming file of the target webpage. The external programming file is used to indicate the programming file defined outside the target webpage.
[0149] And, such as Figure 4 As shown, the device also includes:
[0150] The association module 305 is used to establish an association between an external programming file and a target webpage through preset webpage tags;
[0151] Module 306 is used to determine the table components of the target webpage through external programming files and relationships. The table components include table block sub-components, table row and column sub-components, and table drag-and-drop sub-components.
[0152] It is evident that implementation Figure 4 The described dynamic adjustment device for web page tables can import defined external programming files into the target web page to determine the table block sub-components, table row and column sub-components, and table drag-and-drop sub-components of the target web page. It can flexibly adjust the relevant programming language, avoid the phenomenon of hardcoding fixed data on the target web page, improve the flexibility and reliability of the relevant table components, and thus diversify the adjustment functions of web page tables.
[0153] In another optional embodiment, the above-described generation module 302 is further configured to:
[0154] After the determination module 306 determines the table component of the target webpage through external programming files and association relationships, it generates at least one table block of the target webpage and block control parameters corresponding to each table block through the table block sub-component of the target webpage. The table block is used to place any number of webpage tables, and the block control parameters are used to instruct at least one of the following operations to be performed on its corresponding table block: block labeling, block display, and block hiding.
[0155] It is evident that implementation Figure 4 The described dynamic adjustment device for web page tables can generate at least one table block of the target web page through table block sub-components for the web page table to be placed. It can place different web page table blocks, thereby facilitating the user's organization and use of web page tables and improving the user's efficiency in adjusting web page tables.
[0156] In another optional embodiment, the generation module 302 generates the webpage table of the target webpage according to the user's table usage intention and the table components predetermined in the target webpage, specifically including the following methods:
[0157] Based on the user's desired use of the table and the table row and column sub-components, determine the row and column parameters of the generated web page table. The row and column parameters include at least one of the following: number of rows and columns, row and column distance, and table header annotation.
[0158] Based on the user's table usage intention and the table drag-and-drop sub-component, determine the position parameters for generating the webpage table. The position parameters are used to indicate the webpage position where the generated webpage table is located in any pre-determined table block on the target webpage.
[0159] Generate a webpage table for the target webpage based on row, column, and position parameters.
[0160] It is evident that implementation Figure 4 The described dynamic adjustment device for web page tables can determine the row and column parameters and position parameters of the generated web page table based on the user's table usage intentions, the table row and column sub-components, and the table dragging sub-components, thereby generating the corresponding web page table. This improves the flexibility of generating web page tables and enables the generated web page tables to match the user's usage needs.
[0161] In yet another optional embodiment, the generation module 302 described above is further configured to:
[0162] Before the aforementioned calling module 303 calls at least one control parameter from the pre-determined control parameter library of the web page table according to the user's table usage intention, it generates the control parameter library of the target web page based on the external programming file and the table component. The control parameter library includes a function control parameter sub-library and / or an operation column control parameter sub-library.
[0163] It is evident that implementation Figure 4 The described dynamic adjustment device for web page tables can classify control parameters into sub-libraries according to specific attributes, which is beneficial for calling the corresponding control parameter sub-libraries as needed when adjusting web page tables, thereby reducing the occupation of target web page space resources during the call operation and improving the adjustment efficiency of web page tables.
[0164] In yet another optional embodiment, the method by which the generation module 302 generates the control parameter library of the target webpage based on the external programming file and the table component specifically includes:
[0165] The business scenario of the web page table is determined by the row and column parameters and / or position parameters of the web page table in advance by the table component;
[0166] Based on the business scenario and external programming files, a function control parameter sub-library is generated for the target webpage. The function control parameter sub-library includes at least one control parameter, and any control parameter in the function control parameter sub-library is used to indicate the function adjustment operation to be performed on at least one cell in the webpage table. The function adjustment operation includes at least one of splitting and merging operation, adding operation, and deleting operation.
[0167] It is evident that implementation Figure 4 The described dynamic adjustment device for webpage tables can generate a sub-library of functional control parameters adapted to the business scenario of the target webpage and external programming files, thereby meeting the webpage table organization needs of different business scenarios and improving the applicability and comprehensiveness of the present invention. In another optional embodiment, the generation module 302 generates the control parameter library of the target webpage according to the external programming files and table components in the following specific ways:
[0168] Based on the pre-determined business scenario of the web page table, determine whether the web page table meets the preset attachment conditions;
[0169] When it is determined that the webpage table meets the preset attachment conditions, the operation column of the webpage table is generated;
[0170] Based on the business scenario, operation columns, and external programming files, generate a sub-library of operation column control parameters for the target webpage. The sub-library of operation column control parameters includes at least one control parameter, and any control parameter in the sub-library of operation columns is used to instruct the operation column to perform an operation of adding or deleting attachments on at least one cell in the webpage table.
[0171] It is evident that implementation Figure 4 The described dynamic adjustment device for web page tables can generate operation columns for the web page table when the web page table meets preset attachment conditions, and then generate a corresponding operation column control parameter sub-library, which can meet the user's needs for web page table attachment functions, thereby enabling the generated web page table to match the user's usage needs.
[0172] In yet another alternative embodiment, such as Figure 4 As shown, the device also includes:
[0173] The timing module 307 is used to time the idle time of the web page table after the control execution module controls the corresponding table adjustment operation to be performed on the web page table according to all the control parameters called. The idle time is used to indicate the time that the web page table has been in an idle state.
[0174] The judgment module 308 is used to determine in real time whether the idle time is greater than the preset idle time threshold.
[0175] The above-mentioned generation module 302 is also used to generate the verification control parameters of the web page table when the above-mentioned judgment module 308 determines that the idle time is greater than the preset idle time threshold. The verification control parameters include at least one of space verification, character verification, text verification and format verification.
[0176] The aforementioned control execution module 304 is also used to control the execution of relevant verification operations on the web page table according to the verification control parameters.
[0177] It is evident that implementation Figure 4 The described dynamic adjustment device for web page tables can generate corresponding verification control parameters to control the relevant verification operations on the web page tables when the idle time of the web page tables exceeds a preset idle time threshold. It can mark and prompt users to modify table content that does not meet the verification results, which helps users to fill in the gaps in the table content, thereby improving the accuracy of the table content and thus improving user satisfaction with the table adjustment service.
[0178] Example 4
[0179] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of another dynamic adjustment device for web page tables disclosed in an embodiment of the present invention. Figure 5 As shown, the dynamic adjustment device for the webpage table may include:
[0180] Memory 401 storing executable program code;
[0181] Processor 402 coupled to memory 401;
[0182] The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the dynamic adjustment method of the web page table described in Embodiment 1 or Embodiment 2 of the present invention.
[0183] Example 5
[0184] This invention discloses a computer storage medium storing computer instructions. When these computer instructions are invoked, they are used to execute the steps in the dynamic adjustment method for webpage tables described in Embodiment 1 or Embodiment 2 of this invention.
[0185] Example 6
[0186] This invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps in the dynamic adjustment method for web page tables described in Embodiment 1 or Embodiment 2.
[0187] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0188] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0189] Finally, it should be noted that the method and apparatus for dynamically adjusting web page tables disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for dynamically adjusting a webpage table, characterized in that, The method includes: Obtain users' willingness to use forms; Based on the user's form usage intention and the pre-determined form components of the target webpage, generate the webpage form of the target webpage; Based on the user's form usage intention, at least one control parameter is called from the pre-determined control parameter library of the target webpage; Based on all the control parameters invoked, control the corresponding table adjustment operations to be performed on the web page table; Before obtaining the user's form usage intention, the method further includes: Obtain the external programming file of the target webpage, wherein the external programming file is used to indicate a programming file defined outside the target webpage; By using preset webpage tags, the association between the external programming file and the target webpage is established; The table component of the target webpage is determined by the external programming file and the association relationship. The table component includes a table block sub-component, a table row and column sub-component, and a table drag-and-drop sub-component. Before calling at least one control parameter from a pre-determined control parameter library of the web page form according to the user's form usage intention, the method further includes: Based on the external programming file and the table component, a control parameter library for the target webpage is generated, the control parameter library including a function control parameter sub-library and / or an operation column control parameter sub-library; And, generating the control parameter library for the target webpage based on the external programming file and the table component includes: The business scenario of the web page table is determined by the row and column parameters and / or position parameters of the web page table that are predetermined by the table component. Based on the business scenario and the external programming file, a function control parameter sub-library is generated for the target webpage. The function control parameter sub-library includes at least one control parameter, and any one of the control parameters in the function control parameter sub-library is used to indicate the execution of a function adjustment operation on at least one cell in the webpage table. The function adjustment operation includes at least one of splitting / merging, adding, and deleting operations.
2. The method for dynamically adjusting webpage tables according to claim 1, characterized in that, After determining the table component of the target webpage through the external programming file and the association relationship, the method further includes: The target webpage generates at least one table block and block control parameters corresponding to each table block through the table block sub-component of the target webpage. The table block is used to place any number of webpage tables, and the block control parameters are used to instruct the corresponding table block to perform at least one of the following operations: block labeling, block display, and block hiding.
3. The method for dynamically adjusting webpage tables according to claim 1, characterized in that, The step of generating the webpage table for the target webpage based on the user's form usage intention and the pre-determined form components of the target webpage includes: Based on the user's table usage intention and the table row and column sub-components, determine the row and column parameters of the generated web page table. The row and column parameters include at least one of the following: number of rows and columns, row and column distance, and table header annotation. Based on the user's table usage intention and the table drag-and-drop sub-component, the position parameters for generating the webpage table are determined. The position parameters are used to indicate the webpage position for generating the webpage table, and the webpage position is located in any pre-determined table block of the target webpage. A webpage table for the target webpage is generated based on the row and column parameters and the position parameters.
4. The method for dynamically adjusting webpage tables according to claim 1, characterized in that, The step of generating the control parameter library for the target webpage based on the external programming file and the table component includes: Based on the business scenario predetermined by the web page table, determine whether the web page table meets the preset attachment conditions; When it is determined that the webpage table meets the preset attachment conditions, the operation column of the webpage table is generated; Based on the business scenario, the operation column, and the external programming file, an operation column control parameter sub-library is generated for the target webpage. The operation column control parameter sub-library includes at least one control parameter, and any one of the control parameters in the operation column control parameter sub-library is used to instruct the operation column to perform an operation of adding or deleting attachments on at least one cell in the webpage table.
5. The method for dynamically adjusting webpage tables according to claim 1, characterized in that, After controlling the corresponding table adjustment operation to be performed on the webpage table according to all the called control parameters, the method further includes: The idle time of the webpage table is timed using a preset timing component of the target webpage, and the idle time is used to indicate the time that the webpage table has been in an idle state. Real-time determination of whether the idle time exceeds a preset idle time threshold; When it is determined that the idle time is greater than the preset idle time threshold, the verification control parameters of the web page table are generated. The verification control parameters include at least one of space verification, character verification, text verification and format verification. Based on the verification control parameters, relevant verification operations are performed on the web page table.
6. A dynamic adjustment device for a webpage table, characterized in that, The apparatus is used to perform the dynamic adjustment method for webpage tables as described in any one of claims 1-5, and the apparatus comprises: The acquisition module is used to obtain the user's willingness to use the form; The generation module is used to generate a webpage table for the target webpage based on the user's form usage intention and the pre-determined table components of the target webpage. The calling module is used to call at least one control parameter from a pre-determined control parameter library on the target webpage according to the user's form usage intention; The control execution module is used to control the corresponding table adjustment operation to be performed on the web page table according to all the control parameters invoked by the calling module.
7. A dynamic adjustment device for a webpage table, characterized in that, The device includes: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the dynamic adjustment method of the web page table as described in any one of claims 1-5.
8. A computer storage medium, characterized in that, The computer storage medium stores computer instructions, which, when invoked, are used to execute the dynamic adjustment method for web page tables as described in any one of claims 1-5.
Citation Information
Patent Citations
Method and device for generating webpage table, electronic equipment and readable storage medium
CN112558957A