摘要: 与操作字符串有关的最后一个方法是localeCompare(),这个方法比较两个字符串,按照字符串的字母表中的位置分别返回-1,0,1var stringValue="yellow";alert(stringValue.localeCompare("brick")); //1alert(strin... 阅读全文
posted @ 2014-05-07 13:09 庄昌宽 阅读(165) 评论(0) 推荐(0) 编辑