主要利用了setTimeout(),递归和String.substring();做出的效果就像是有一个打字员在打字. 1 2 3 4 5 6 7 8 9 Document10 11 12 文本自动输出13 14 15 16...
分类:
编程语言 时间:
2015-07-29 19:07:46
阅读次数:
140
LeetCode 5_Longest Palindromic Substring
题目描述:
Given a string S,
find the longest palindromic substring in S.
You may assume that the maximum length of S is
1000, and there exists one unique ...
分类:
其他好文 时间:
2015-07-29 15:57:00
阅读次数:
131
substring() 从字符串中提取一些字符var str="Hello world!"document.write(str.substring(3))stringObject.replace(regexp/substr,replacement)var str="Visit Microsoft!"...
分类:
编程语言 时间:
2015-07-29 15:33:42
阅读次数:
143
如今,这个项目的需求:将“甲状腺结节 5*3 cm” 更换 “甲状腺结节 * cm”。在一个字符串的数字来替换空白。码,如以下: public static String subString(String str) { String regex = "\\d*"; Pattern p = Pa...
分类:
编程语言 时间:
2015-07-28 22:41:12
阅读次数:
143
这里我们讲述一下关于jq根据身份证号码计算出生日期、年龄、性别,有需要的同学可参考一下。代码如下复制代码//获取输入身份证号码 var UUserCard = $("#UUserCard").val(); //获取出生日期 //UUserCard.substring(6, 10) + "-" + U...
分类:
Web程序 时间:
2015-07-28 17:36:04
阅读次数:
186
string str = "2015年3月";int firstIndex = str.IndexOf("年", 0);int secondIndex = str.IndexOf("月", firstIndex + 1);string month = str.Substring(firstIndex...
Problem Definition:Given a string S, find the longest palindromic substring in S.You may assume that the maximum length of S is 1000, and there exists...
分类:
其他好文 时间:
2015-07-28 17:22:12
阅读次数:
111
LeetCode 3_Longest Substring Without Repeating Characters
题目描述:
Given a string, find the length of the longest substring
without repeating characters. For example, the longest substring without re...
分类:
其他好文 时间:
2015-07-27 23:10:47
阅读次数:
106
Problem Definition:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring withoutre...
分类:
其他好文 时间:
2015-07-27 20:57:10
阅读次数:
105
问题描述Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longes...
分类:
其他好文 时间:
2015-07-27 13:02:11
阅读次数:
98