General.Web/wwwroot/lib/bootstrap.table/1.12.0/extensions/natural-sorting/README.md

(完整代码) 901B

# Table Natural Sorting

Use Plugin: [bootstrap-table-natural-sorting](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/natural-sorting)

## Usage

```html
<script src="extensions/natural-sorting/bootstrap-table-natural-sorting.js"></script>
```

add a data-sorter atribute to any th. 
*e.g.* ``` <th data-sortable="true" data-sorter="alphanum">Price</th>```

## Options

### alphanum
* sort alpha or numeric content naturally.
* This can be used in columns that contain text or numeric content. 
* Numbers will be sorted as expected and not in ASCII order 

### numericOnly
* extract numeric content and sort numerically.  
* This can be used in columns that contain formated numeric content. 
*  *e.g.* $ and , will be removed, then Numbers will be sorted as expected
* an alpha sort crrently sorts these as ASCII so you get $1, $100, $2, $20
  instead of $1, $2, $20, $100.

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。