码迷,mamicode.com
首页 >  
搜索关键字:substring with conca    ( 3920个结果)
利用javascript实现文本的自动输出
主要利用了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
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
javascript字符串函数
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
Java替换字符或十进制数的字符串
如今,这个项目的需求:将“甲状腺结节 5*3 cm” 更换 “甲状腺结节 * cm”。在一个字符串的数字来替换空白。码,如以下: public static String subString(String str) { String regex = "\\d*"; Pattern p = Pa...
分类:编程语言   时间:2015-07-28 22:41:12    阅读次数:143
JS通过身份证号码获取出生年月日
这里我们讲述一下关于jq根据身份证号码计算出生日期、年龄、性别,有需要的同学可参考一下。代码如下复制代码//获取输入身份证号码 var UUserCard = $("#UUserCard").val(); //获取出生日期 //UUserCard.substring(6, 10) + "-" + U...
分类:Web程序   时间:2015-07-28 17:36:04    阅读次数:186
C# 根据年月获得此月第一天和最后一天,并计算工作日
string str = "2015年3月";int firstIndex = str.IndexOf("年", 0);int secondIndex = str.IndexOf("月", firstIndex + 1);string month = str.Substring(firstIndex...
分类:Windows程序   时间:2015-07-28 17:28:34    阅读次数:198
LeetCode#5 Longest Palindromic Substring
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
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
LeetCode#3 Longest Substring Without Repeating Characters
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
Longest Palindromic Substring
问题描述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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!