我们在使用代码编程一个网站的时候,通常情况下头部和尾部是相同的,如果一个网站的每个页面都把这些代码写一遍,不仅浪费时间,还显得重复代码很多,所以此时把重复的页面单独摘出来,在用到的时候从外部直接引进去,就能节省很多时间,减少很多代码。 在这里,有好几种引入html文件的方式,不过每种都是有利有弊,需 ...
分类:
Web程序 时间:
2019-10-24 11:40:19
阅读次数:
544
给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。这道题主要用到思路是:滑动窗口class Solution { /** * @param String $s * @return Integer */ function lengthOfLongestSubstring($s) { $l... ...
分类:
其他好文 时间:
2019-10-23 13:15:53
阅读次数:
146
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取float型小数点后两位,例22.123456取成22.12,如何做? 1.通过substring截取。 2. 正则表达式。 3.数据类型保留上。 4.toFixed方法 ...
分类:
编程语言 时间:
2019-10-19 23:26:54
阅读次数:
170
array splice slice string slice split substring ...
分类:
其他好文 时间:
2019-10-19 18:55:39
阅读次数:
79
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
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
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
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