摘要:
<script type="text/javascript"> var a = "testthisprojecthelloworld!"; var b = {}; var c = null; for (var i in a) { !isNaN(b[a[i]]++) || (b[a[i]] = 1); c = b[a[i]] > (b[c]==undefined?"0":b[c]) ? a[i] : c; } alert(c + ":" + b[c]);//出自http://www.cnblogs. 阅读全文