alphaListNav.js是JS版本listnav jQuery插件,动态生成字母导航链接过滤HTML列表按字母顺序。
基础调用
const cityList = new AlphaListNav('list-nav');默认
const cityList = new AlphaListNav('list-nav',{ initLetter: 'B' });是否显示所有
const cityList = new AlphaListNav('list-nav',{ includeAll: true });所有配置参数
const cityList = new AlphaListNav('list-nav',{ initHidden: false, initHiddenText: 'Tap a letter above to view matching items', initLetter: 'A', includeAll: true, allText: 'All', noMatchText: 'No matching entries', includeNums: true, concatenateNums: true, includeOther: false, flagDisabled: true, removeDisabled: false, prefixes: [], filterSelector: '', });
js自动生成列表首字母导航
正在加载文件目录...
- 热度 23
![](https://imgs.bootstrapmb.com/2019/6/250418511.jpg)
Jackstraw下载了 此素材
![](https://imgs.bootstrapmb.com/2023/10/071014028.jpg)
小肥裤下载了 此素材
![](https://imgs.bootstrapmb.com/2023/10/170153367.jpg)
Abner下载了 此素材
![](https://imgs.bootstrapmb.com/2022/3/260659576.jpg)
mxp下载了 此素材
![](https://imgs.bootstrapmb.com/2021/10/280202194.jpg)
sweet下载了 此素材
![](https://imgs.bootstrapmb.com/2022/9/271036014.jpg)
try混搭下载了 此素材
![](https://imgs.bootstrapmb.com/2022/12/121103157.jpg)
宁ヽ青争下载了 此素材
![](https://imgs.bootstrapmb.com/2022/9/271036014.jpg)
try混搭下载了 此素材
![](https://imgs.bootstrapmb.com/2020/12/070537208.jpg)
苍煙落照下载了 此素材
![](https://imgs.bootstrapmb.com/2022/4/030430104.jpg)
星云下载了 此素材