码迷,mamicode.com
首页 >  
搜索关键字:substring    ( 3892个结果
html页面引入另一个html页面
我们在使用代码编程一个网站的时候,通常情况下头部和尾部是相同的,如果一个网站的每个页面都把这些代码写一遍,不仅浪费时间,还显得重复代码很多,所以此时把重复的页面单独摘出来,在用到的时候从外部直接引进去,就能节省很多时间,减少很多代码。 在这里,有好几种引入html文件的方式,不过每种都是有利有弊,需 ...
分类:Web程序   时间:2019-10-24 11:40:19    阅读次数:544
leecode-找出其中不含有重复字符的 最长子串 的长度
给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。这道题主要用到思路是:滑动窗口class Solution { /** * @param String $s * @return Integer */ function lengthOfLongestSubstring($s) { $l... ...
分类:其他好文   时间:2019-10-23 13:15:53    阅读次数:146
32. Longest Valid Parentheses
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example 1: Exampl ...
分类:其他好文   时间:2019-10-23 00:33:50    阅读次数:102
javascript 取小数点后几位四种方法
javascript 取小数点后几位方法总结 Javascript取float型小数点后两位,例22.123456取成22.12,如何做? 1.通过substring截取。 2. 正则表达式。 3.数据类型保留上。 4.toFixed方法 ...
分类:编程语言   时间:2019-10-19 23:26:54    阅读次数:170
array splice split || string split slice 傻傻分不清楚=>终于弄清楚了
array splice slice string slice split substring ...
分类:其他好文   时间:2019-10-19 18:55:39    阅读次数:79
el用fn:substring截取,indexof也要声明是fn的否则会错误
jsp写el表达式 记录一下今天用jsp写el表达式的时候的错误。 截取括号后面的数据长度 datalength = varchar(32) 能正确截取的方法 ${fn:substring(datalength,fn:indexOf(datalength,'(')+1 ,fn:indexOf(dat ...
分类:其他好文   时间:2019-10-18 19:29:46    阅读次数:99
通信协议设计
一.引子与协议说明 之前开发了一个项目——车载导航系统。遇到的第一个问题就是硬件设备如何与服务器通信。 关键在于通信协议! 众所周知:要想实现通信,首先通信双方就要达成通信协议。 话不多说,且看协议: ————————————————华丽的分割线————————————————— 以上的这些协议说明 ...
分类:其他好文   时间:2019-10-17 11:42:10    阅读次数:84
44. Wildcard Matching
Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*'. The matching should cover the entire in ...
分类:其他好文   时间:2019-10-17 01:31:57    阅读次数:77
processlist
select * from information_schema.processlist show full processlist # 获得select user,substring_index(host,':',1) as ip,count(1) as total from informatio... ...
分类:其他好文   时间:2019-10-15 22:37:47    阅读次数:63
[LC] 159. Longest Substring with At Most Two Distinct Characters
Given a string s , find the length of the longest substring t that contains at most 2 distinct characters. Example 1: Example 2: ...
分类:其他好文   时间:2019-10-15 10:15:53    阅读次数:83
3892条   上一页 1 ... 36 37 38 39 40 ... 390 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!