jQuery给城市名排序

plugin 发布于 2015/10/29 11:37
阅读 70
收藏 0

这是城市的数据

var _ListData_=[
['北京北', 'bjb', 'beijingbei', '5'],
['北京东', 'bjd', 'beijingdong', '5'],
['北京', 'bj', 'beijing', '5'],
['北京南', 'bjn', 'beijingnan', '5'],
['北京西', 'bjx', 'beijingxi', '5'],
['重庆北', 'cqb', 'chongqingbei', '5'],
['重庆', 'cq', 'chongqing', '5'],
['重庆南', 'cqn', 'chongqingnan', '5'],
['上海', 'sh', 'shanghai', '5'],
['上海南', 'shn', 'shanghainan', '5'],
['上海虹桥', 'shhq', 'shanghaihongqiao', '5'],
['上海西', 'shx', 'shanghaixi', '5'],
['天津北', 'tjb', 'tianjinbei', '5'],
['天津', 'tj', 'tianjin', '5'],
['天津南', 'tjn', 'tianjinnan', '5'],
['天津西', 'tjx', 'tianjinxi', '5'],
['长春', 'cc', 'changchun', '5'],
['长春南', 'ccn', 'changchunnan', '5'],
['长春西', 'ccx', 'changchunxi', '5'],
['成都东', 'cdd', 'chengdudong', '5'],
['成都南', 'cdn', 'chengdunan', '5'],
['成都', 'cd', 'chengdu', '5'],
['长沙', 'cs', 'changsha', '5'],
['长沙南', 'csn', 'changshanan', '5'],
['福州', 'fz', 'fuzhou', '5'],
['福州南', 'fzn', 'fuzhounan', '5'],
['贵阳', 'gy', 'guiyang', '5'],
['广州北', 'gzb', 'guangzhoubei', '5'],
['广州东', 'gzd', 'guangzhoudong', '5'],
['广州', 'gz', 'guangzhou', '5'],
['广州南', 'gzn', 'guangzhounan', '5'],
['哈尔滨', 'heb', 'haerbin', '5'],
['哈尔滨东', 'hebd', 'haerbindong', '5'],
['哈尔滨西', 'hebx', 'haerbinxi', '5'],
['合肥', 'hf', 'hefei', '5'],
['呼和浩特东', 'hhhtd', 'huhehaotedong', '5'],
['呼和浩特', 'hhht', 'huhehaote', '5'],

我现在想实现的效果是,按照首字母,把他们分割开

加载中
返回顶部
顶部