首页 > 代码库 > js写一个通讯录

js写一个通讯录

前言:最近我在用H5重构一个公司APP前端,遇到了类似通讯录功能。经过三天的奋战,已经把功能实现了。我将会从思考,可行性,具体代码,调试这四个方面去写,因为我就是从这四个方面去写代码的。文章会很长,平时比较忙,所以会一点点去写这个功能。如有不好的地方,望指出。

 

模拟通讯录列表功能

我们手机上面的通讯录列表里面都有根据右侧的字母跳滚动到该字母的第一个名单地方。

技术分享

 

于是我把这个功能拆分成两个功能区思考:

第一个是如何把这些名字的的汉字首字母提取出来,并且把相同字母的汉字归类,最后显示成列表。

第二是右侧字母导航,它需要一直固定在右侧,并且我按一个字母,屏幕最中间会弹出一个字母方框,代表我选中了这个字母。

 

我首先去实现第一个问题,如何提取名字中第一个汉字的首字母?

我去尝试过许多种方法,其中尝试过使用localeCompare(),我也成功的排序了,但是我发现两个问题,其一是就算我给这些汉字排序了,但是我要实现滚动功能就是不可完成的,我不知道哪个是该字母的第一个名字;其二是不同浏览器,对localeCompare()的支持是不一样,兼容性不好。

最后答案就是用unicode去实现,把汉字转换成unicode,通过已经封装的unicode字母分类去获取汉字的首字母。当然必不可少的也需要验证是否为汉字,假如是汉字就要去分类,非汉字就可以直接返回了;还需要去除空格等等小细节。

封装的JS文件如下(非常感谢网友提供的代码,这个非原创,使用的是他人的代码,但是原理一定要知道),makePy(str)这个函数就是接口。

技术分享
  1 var strChineseFirstPY = "YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZ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BGYCHJXY";
  2 //此处收录了375个多音字  
  3 var oMultiDiff = {
  4     "19969": "DZ",
  5     "19975": "WM",
  6     "19988": "QJ",
  7     "20048": "YL",
  8     "20056": "SC",
  9     "20060": "NM",
 10     "20094": "QG",
 11     "20127": "QJ",
 12     "20167": "QC",
 13     "20193": "YG",
 14     "20250": "KH",
 15     "20256": "ZC",
 16     "20282": "SC",
 17     "20285": "QJG",
 18     "20291": "TD",
 19     "20314": "YD",
 20     "20340": "NE",
 21     "20375": "TD",
 22     "20389": "YJ",
 23     "20391": "CZ",
 24     "20415": "PB",
 25     "20446": "YS",
 26     "20447": "SQ",
 27     "20504": "TC",
 28     "20608": "KG",
 29     "20854": "QJ",
 30     "20857": "ZC",
 31     "20911": "PF",
 32     "20504": "TC",
 33     "20608": "KG",
 34     "20854": "QJ",
 35     "20857": "ZC",
 36     "20911": "PF",
 37     "20985": "AW",
 38     "21032": "PB",
 39     "21048": "XQ",
 40     "21049": "SC",
 41     "21089": "YS",
 42     "21119": "JC",
 43     "21242": "SB",
 44     "21273": "SC",
 45     "21305": "YP",
 46     "21306": "QO",
 47     "21330": "ZC",
 48     "21333": "SDC",
 49     "21345": "QK",
 50     "21378": "CA",
 51     "21397": "SC",
 52     "21414": "XS",
 53     "21442": "SC",
 54     "21477": "JG",
 55     "21480": "TD",
 56     "21484": "ZS",
 57     "21494": "YX",
 58     "21505": "YX",
 59     "21512": "HG",
 60     "21523": "XH",
 61     "21537": "PB",
 62     "21542": "PF",
 63     "21549": "KH",
 64     "21571": "E",
 65     "21574": "DA",
 66     "21588": "TD",
 67     "21589": "O",
 68     "21618": "ZC",
 69     "21621": "KHA",
 70     "21632": "ZJ",
 71     "21654": "KG",
 72     "21679": "LKG",
 73     "21683": "KH",
 74     "21710": "A",
 75     "21719": "YH",
 76     "21734": "WOE",
 77     "21769": "A",
 78     "21780": "WN",
 79     "21804": "XH",
 80     "21834": "A",
 81     "21899": "ZD",
 82     "21903": "RN",
 83     "21908": "WO",
 84     "21939": "ZC",
 85     "21956": "SA",
 86     "21964": "YA",
 87     "21970": "TD",
 88     "22003": "A",
 89     "22031": "JG",
 90     "22040": "XS",
 91     "22060": "ZC",
 92     "22066": "ZC",
 93     "22079": "MH",
 94     "22129": "XJ",
 95     "22179": "XA",
 96     "22237": "NJ",
 97     "22244": "TD",
 98     "22280": "JQ",
 99     "22300": "YH",
100     "22313": "XW",
101     "22331": "YQ",
102     "22343": "YJ",
103     "22351": "PH",
104     "22395": "DC",
105     "22412": "TD",
106     "22484": "PB",
107     "22500": "PB",
108     "22534": "ZD",
109     "22549": "DH",
110     "22561": "PB",
111     "22612": "TD",
112     "22771": "KQ",
113     "22831": "HB",
114     "22841": "JG",
115     "22855": "QJ",
116     "22865": "XQ",
117     "23013": "ML",
118     "23081": "WM",
119     "23487": "SX",
120     "23558": "QJ",
121     "23561": "YW",
122     "23586": "YW",
123     "23614": "YW",
124     "23615": "SN",
125     "23631": "PB",
126     "23646": "ZS",
127     "23663": "ZT",
128     "23673": "YG",
129     "23762": "TD",
130     "23769": "ZS",
131     "23780": "QJ",
132     "23884": "QK",
133     "24055": "XH",
134     "24113": "DC",
135     "24162": "ZC",
136     "24191": "GA",
137     "24273": "QJ",
138     "24324": "NL",
139     "24377": "TD",
140     "24378": "QJ",
141     "24439": "PF",
142     "24554": "ZS",
143     "24683": "TD",
144     "24694": "WE",
145     "24733": "LK",
146     "24925": "TN",
147     "25094": "ZG",
148     "25100": "XQ",
149     "25103": "XH",
150     "25153": "PB",
151     "25170": "PB",
152     "25179": "KG",
153     "25203": "PB",
154     "25240": "ZS",
155     "25282": "FB",
156     "25303": "NA",
157     "25324": "KG",
158     "25341": "ZY",
159     "25373": "WZ",
160     "25375": "XJ",
161     "25384": "A",
162     "25457": "A",
163     "25528": "SD",
164     "25530": "SC",
165     "25552": "TD",
166     "25774": "ZC",
167     "25874": "ZC",
168     "26044": "YW",
169     "26080": "WM",
170     "26292": "PB",
171     "26333": "PB",
172     "26355": "ZY",
173     "26366": "CZ",
174     "26397": "ZC",
175     "26399": "QJ",
176     "26415": "ZS",
177     "26451": "SB",
178     "26526": "ZC",
179     "26552": "JG",
180     "26561": "TD",
181     "26588": "JG",
182     "26597": "CZ",
183     "26629": "ZS",
184     "26638": "YL",
185     "26646": "XQ",
186     "26653": "KG",
187     "26657": "XJ",
188     "26727": "HG",
189     "26894": "ZC",
190     "26937": "ZS",
191     "26946": "ZC",
192     "26999": "KJ",
193     "27099": "KJ",
194     "27449": "YQ",
195     "27481": "XS",
196     "27542": "ZS",
197     "27663": "ZS",
198     "27748": "TS",
199     "27784": "SC",
200     "27788": "ZD",
201     "27795": "TD",
202     "27812": "O",
203     "27850": "PB",
204     "27852": "MB",
205     "27895": "SL",
206     "27898": "PL",
207     "27973": "QJ",
208     "27981": "KH",
209     "27986": "HX",
210     "27994": "XJ",
211     "28044": "YC",
212     "28065": "WG",
213     "28177": "SM",
214     "28267": "QJ",
215     "28291": "KH",
216     "28337": "ZQ",
217     "28463": "TL",
218     "28548": "DC",
219     "28601": "TD",
220     "28689": "PB",
221     "28805": "JG",
222     "28820": "QG",
223     "28846": "PB",
224     "28952": "TD",
225     "28975": "ZC",
226     "29100": "A",
227     "29325": "QJ",
228     "29575": "SL",
229     "29602": "FB",
230     "30010": "TD",
231     "30044": "CX",
232     "30058": "PF",
233     "30091": "YSP",
234     "30111": "YN",
235     "30229": "XJ",
236     "30427": "SC",
237     "30465": "SX",
238     "30631": "YQ",
239     "30655": "QJ",
240     "30684": "QJG",
241     "30707": "SD",
242     "30729": "XH",
243     "30796": "LG",
244     "30917": "PB",
245     "31074": "NM",
246     "31085": "JZ",
247     "31109": "SC",
248     "31181": "ZC",
249     "31192": "MLB",
250     "31293": "JQ",
251     "31400": "YX",
252     "31584": "YJ",
253     "31896": "ZN",
254     "31909": "ZY",
255     "31995": "XJ",
256     "32321": "PF",
257     "32327": "ZY",
258     "32418": "HG",
259     "32420": "XQ",
260     "32421": "HG",
261     "32438": "LG",
262     "32473": "GJ",
263     "32488": "TD",
264     "32521": "QJ",
265     "32527": "PB",
266     "32562": "ZSQ",
267     "32564": "JZ",
268     "32735": "ZD",
269     "32793": "PB",
270     "33071": "PF",
271     "33098": "XL",
272     "33100": "YA",
273     "33152": "PB",
274     "33261": "CX",
275     "33324": "BP",
276     "33333": "TD",
277     "33406": "YA",
278     "33426": "WM",
279     "33432": "PB",
280     "33445": "JG",
281     "33486": "ZN",
282     "33493": "TS",
283     "33507": "QJ",
284     "33540": "QJ",
285     "33544": "ZC",
286     "33564": "XQ",
287     "33617": "YT",
288     "33632": "QJ",
289     "33636": "XH",
290     "33637": "YX",
291     "33694": "WG",
292     "33705": "PF",
293     "33728": "YW",
294     "33882": "SR",
295     "34067": "WM",
296     "34074": "YW",
297     "34121": "QJ",
298     "34255": "ZC",
299     "34259": "XL",
300     "34425": "JH",
301     "34430": "XH",
302     "34485": "KH",
303     "34503": "YS",
304     "34532": "HG",
305     "34552": "XS",
306     "34558": "YE",
307     "34593": "ZL",
308     "34660": "YQ",
309     "34892": "XH",
310     "34928": "SC",
311     "34999": "QJ",
312     "35048": "PB",
313     "35059": "SC",
314     "35098": "ZC",
315     "35203": "TQ",
316     "35265": "JX",
317     "35299": "JX",
318     "35782": "SZ",
319     "35828": "YS",
320     "35830": "E",
321     "35843": "TD",
322     "35895": "YG",
323     "35977": "MH",
324     "36158": "JG",
325     "36228": "QJ",
326     "36426": "XQ",
327     "36466": "DC",
328     "36710": "JC",
329     "36711": "ZYG",
330     "36767": "PB",
331     "36866": "SK",
332     "36951": "YW",
333     "37034": "YX",
334     "37063": "XH",
335     "37218": "ZC",
336     "37325": "ZC",
337     "38063": "PB",
338     "38079": "TD",
339     "38085": "QY",
340     "38107": "DC",
341     "38116": "TD",
342     "38123": "YD",
343     "38224": "HG",
344     "38241": "XTC",
345     "38271": "ZC",
346     "38415": "YE",
347     "38426": "KH",
348     "38461": "YD",
349     "38463": "AE",
350     "38466": "PB",
351     "38477": "XJ",
352     "38518": "YT",
353     "38551": "WK",
354     "38585": "ZC",
355     "38704": "XS",
356     "38739": "LJ",
357     "38761": "GJ",
358     "38808": "SQ",
359     "39048": "JG",
360     "39049": "XJ",
361     "39052": "HG",
362     "39076": "CZ",
363     "39271": "XT",
364     "39534": "TD",
365     "39552": "TD",
366     "39584": "PB",
367     "39647": "SB",
368     "39730": "LG",
369     "39748": "TPB",
370     "40109": "ZQ",
371     "40479": "ND",
372     "40516": "HG",
373     "40536": "HG",
374     "40583": "QJ",
375     "40765": "YQ",
376     "40784": "QJ",
377     "40840": "YK",
378     "40863": "QJG"
379 };
380 //参数,中文字符串  
381 //返回值:拼音首字母串数组  
382 function makePy(str) {
383     if(typeof(str) != "string")
384         throw new Error(-1, "函数makePy需要字符串类型参数!");
385     var arrResult = new Array(); //保存中间结果的数组  
386     for(var i = 0, len = str.length; i < len; i++) {
387         //获得unicode码  
388         var ch = str.charAt(i);
389         //检查该unicode码是否在处理范围之内,在则返回该码对映汉字的拼音首字母,不在则调用其它函数处理  
390         arrResult.push(checkCh(ch));
391     }
392     //处理arrResult,返回所有可能的拼音首字母串数组  
393     return mkRslt(arrResult);
394 }
395 
396 function checkCh(ch) {
397     var uni = ch.charCodeAt(0);
398     //如果不在汉字处理范围之内,返回原字符,也可以调用自己的处理函数  
399     if(uni > 40869 || uni < 19968)
400         return ch; //dealWithOthers(ch);  
401     //检查是否是多音字,是按多音字处理,不是就直接在strChineseFirstPY字符串中找对应的首字母  
402     return(oMultiDiff[uni] ? oMultiDiff[uni] : (strChineseFirstPY.charAt(uni - 19968)));
403 }
404 
405 function mkRslt(arr) {
406     var arrRslt = [""];
407     for(var i = 0, len = arr.length; i < len; i++) {
408         var str = arr[i];
409         var strlen = str.length;
410         if(strlen == 1) {
411             for(var k = 0; k < arrRslt.length; k++) {
412                 arrRslt[k] += str;
413             }
414         } else {
415             var tmpArr = arrRslt.slice(0);
416             arrRslt = [];
417             for(k = 0; k < strlen; k++) {
418                 //复制一个相同的arrRslt  
419                 var tmp = tmpArr.slice(0);
420                 //把当前字符str[k]添加到每个元素末尾  
421                 for(var j = 0; j < tmp.length; j++) {
422                     tmp[j] += str.charAt(k);
423                 }
424                 //把复制并修改后的数组连接到arrRslt上  
425                 arrRslt = arrRslt.concat(tmp);
426             }
427         }
428     }
429     return arrRslt;
430 }
431 //两端去空格函数  
432 String.prototype.trim = function() {
433     return this.replace(/(^\s*)|(\s*$)/g, "");
434 }
435 
436 //查看拼音首字母缩写  
437 function query() {
438     var str = document.getElementById("txtChinese").value.trim();
439     if(str == "") return;
440     var arrRslt = makePy(str);
441     alert(arrRslt);
442 }
View Code

 测试代码:

 window.onload=function(){
	 	var str = makePy("计算机");
	 	document.write(str);
	 }

答案是:JSJ

在这里面测试成功通过,所以解决获取汉字首字母是成功的。

 

第二个问题,我有非常多的客户名字,我该怎么把她们放到数组里面去,然后显示到页面上呢。

我是这样想的:首先创建27个数组,从a-z,还有一个other(存放首字母是数字或者其他符号),然后我写一个链表,把每个数组插入到链表当中去,最后遍历链表,使用append(),插入标签<li>。每个节点都是一个数组,每个数组第一个名字标记一个class,为以后滚动做准备。

技术分享

 

 未完待续(突然发现自己链表考虑不充分的问题);

 

 

<style>p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Consolas; color: #060606 }</style> <style>p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Consolas; color: #060606 }</style>

js写一个通讯录