Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Table sorting method and system based on jQuery

A table sorting and sorting method technology, applied in the computer field, can solve the problems of complex implementation and waste of storage resources, etc., and achieve the effect of flexible and fast sorting

Inactive Publication Date: 2015-12-16
北京思特奇信息技术股份有限公司
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The design idea of ​​this implementation method uses the index method, which is more ingenious to implement. However, it is necessary to extract a large amount of data and put it into an array, and then redraw the table class. It needs to waste a lot of storage resources, and the implementation is complicated.

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
  • Table sorting method and system based on jQuery
  • Table sorting method and system based on jQuery

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0025] The invention relates to a table sorting method purely client-oriented based on the jquery framework. The background service can query all the data at one time, and then use the sorting algorithm to sort. The sorting method can perform quick sorting based on multiple data types. The method of the present invention allows the front-end client to sort the tables by itself, and the background service only needs to query the data without processing the data, so as to achieve the purpose of sharing the pressure on the server.

[0026] The present invention imports the js file including the sorting algorithm into the project project; the sorting algorithm provides a simple and easy-to-use function externally, and d...

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 table sorting method and system based on jQuery. The method comprises the steps of: calling a background service, and displaying data returned by the backstage service in a table in a tabular form; selecting a sorting manner and a to-be-sorted data column according to the requirements; and extracting data in the to-be-sorted data column, sorting the extracted data column in a corresponding sorting manner according to a pre-defined algorithm, and carrying out corresponding position exchange on rows of the table according to a sorting result of the data. According to the sorting method provided by the invention, without arrays or intermediate quantity, the data is subjected to bubble sorting, so that a group of data can be quickly sorted in an ascending or descending order and then the sorted data is subjected to position exchange according to the positions for achieving the effect of table sorting; and the background service does not need to be subjected to any data processing, sorting inquiry also does not need to be performed when a data processing layer is accessed, the pressure of a server and a database for the background service is shared, the work is handed over to a foreground, and the foreground can carry out sorting flexibly and quickly.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a jQuery-based table sorting method and system. Background technique [0002] The prior art sorting method basically all selects the column to be sorted from the table earlier, extracts the column data to be sorted and puts it into an array, and at the same time puts the content innerHTML of each row (based on javascript ) or $obj.html() (based on jquery) and put it in another array. The elements in the two arrays are linked by an index, and then the data list is cleared. Sort the data in the array, and then add the elements in the array storing innerHTML to the table in order through the index column. The design idea of ​​this implementation method uses the index method, which is more ingenious to implement. However, the method of extracting a large amount of data and putting it into an array, and then redrawing the table class needs to waste a lot of storage resources, and t...

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
IPC IPC(8): G06F17/30
CPCG06F16/90
Inventor 王涛
Owner 北京思特奇信息技术股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products