Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for dynamically merging webpage tables

A table and webpage technology, applied in the field of dynamic merging of webpage tables, can solve problems such as lack of flexibility, not suitable for returning multiple table data in the background, etc.

Pending Publication Date: 2021-02-09
SHANGHAI YUYUAN POWER TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The second category: For merging data with a fixed location in the web form, this method is only applicable to the fixed data returned by the backend. The location of the data that needs to be merged each time is fixed. This method lacks flexibility. If the data returned by the background is not fixed , the method is not suitable for
The third category: according to the table data returned by the background, the data of a fixed column is merged, but this method is not suitable for the situation where multiple table data is returned in the background

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for dynamically merging webpage tables

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0025] Such as figure 1 As shown, a method for dynamically merging web tables includes the following steps:

[0026] 1. Process one or more table data returned by the background: For each table data, first generate an object array according to the column names to be processed. Since this method can process multiple table data at one time, it will first process multiple table data obtained from the background, according to the columns that need to be merged, and after each table data is processed, a corresponding JSon object will be generated, and multiple Json objects form an array, and then process the data according to the generated Json objects.

[0027] Each Json object has 3 attributes, which are the merged array of the column, column name, and merged serial number. Each Json object is a column that needs to be processed. After generat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method for dynamically merging webpage tables, which comprises the following steps of: generating an object array for one table or data of each of a plurality of tables returned by a background according to a column name required to be processed; traversing the data in the table, comparing each piece of data except the first piece of data with the previous data, and dynamically adjusting the object array; carrying out data display by adopting an arraySpanMethod method; and enabling the page to merge the data at the specified position in the table according to the value returned by the arraySpanMethod method. According to the method, multiple table data on the webpage can be processed, the multiple table data can be dynamically processed according to the data returned by the background, multiple columns can be combined, and the columns can be autonomously selected according to requirements.

Description

technical field [0001] The invention relates to the technical field of webpage table processing, in particular to a method for dynamically merging webpage tables. Background technique [0002] There are generally three types of table data display on web pages. The first type: simply display the table data in the background on the web page, and do not merge the same data in a column. The second category: For merging data with a fixed location in the web form, this method is only applicable to the fixed data returned by the backend. The location of the data that needs to be merged each time is fixed. This method lacks flexibility. If the data returned by the background is not fixed , then this method is not suitable. The third category: according to the table data returned by the background, the data of a fixed column is merged, but this method is not suitable for the situation where multiple table data are returned by the background. Contents of the invention [0003] Aim...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F40/174
CPCG06F40/174
Inventor 尚德华胡博文
Owner SHANGHAI YUYUAN POWER TECH CO LTD