Description Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those l ...
分类:
其他好文 时间:
2018-08-04 11:47:41
阅读次数:
116
字符串的常用方法 charAt() 返回指定索引位置的字符 charCodeAt() 返回指定索引位置字符的 Unicode 值 concat() 连接两个或多个字符串,返回连接后的字符串 fromCharCode() 将 Unicode 转换为字符串 indexOf() 返回字符串中检索指定字符第 ...
分类:
编程语言 时间:
2018-08-03 11:30:08
阅读次数:
162
function capitalize(string){ var words = string.split(' '); var i; for(i = 0; i < words.length; i ++){ words[i] = words[i].charAt(0).toUpperCase()+wor... ...
分类:
Web程序 时间:
2018-07-31 13:41:39
阅读次数:
207
发光文字动画效果: <!doctype html> <html> <head> <meta charset="utf-8"> <title>jQuery+CSS3彩色霓虹灯发光文字动画特效</title> <script src="js/jquery.min.js"></script> <style ...
分类:
Web程序 时间:
2018-07-28 15:10:13
阅读次数:
626
Polycarpus loves hamburgers very much. He especially adores the hamburgers he makes with his own hands. Polycarpus thinks that there are only three de ...
分类:
其他好文 时间:
2018-07-28 13:53:52
阅读次数:
164
JAVA String类 字符串是常量;它们的值在创建之后不能改变。字符串缓冲区支持可变的字符串。因为 String 对象是不可变的,所以可以共享它们。例如: 等效于: 注意事项 常用方法 equals() 判断值是否相等 equalsIgnoreCase() 忽略大小写进行对比 toLowerCa ...
分类:
编程语言 时间:
2018-07-04 22:39:44
阅读次数:
114
js是一种脚本语言。在html中起到操控行为的作用。在html中,html代码如果是一个人的话,那么js就是这个人的行为 js在html的head中被引用,也可以在body中被引用。引用方式用<script></script>标签:<script src="public.js" type="text ...
分类:
Web程序 时间:
2018-07-01 18:19:10
阅读次数:
207
字符串的相关操作: var str = ‘xuanmo blog’; 查找 str.charAt(n);查找字符串下标对应的字符 str.charCodeAt(n);查找字符串对应下标的ASCII码 String.fromCharCode(n);写入ASCII码序号,返回对应的字符 str.inde ...
分类:
编程语言 时间:
2018-07-01 14:52:20
阅读次数:
175