字符串按Ascii排序

       //<!-- 字符串按ascii码排序-->
       function Array()
       {
           var arrayTest=['aer','r','z','y','eerer'];
           arrayTest.sort();
           alert(arrayTest.toString());
      }

  //输出字符串中字符的Ascii码
  function ArrAcsi()
  {
    var a ='afd';
           alert(a.charCodeAt(0));  
    //输出字符a的Acssi码
  }
posted @ 2009-08-28 09:58  艾伦  阅读(1186)  评论(0编辑  收藏  举报