第一节Relational DB -> Databases -> Tables -> Rows -> ColumnsElasticsearch -> Indices -> Types -> Documents -> Fields1.6小节"match" : { "abou...
分类:
其他好文 时间:
2015-09-11 12:05:53
阅读次数:
190
//判断是否是正整数function IsNum(s){ if(s!=null){ var r,re; re = /\d*/i; //\d表示数字,*表示匹配多个数字 r = s.match(re); return (r==s)?true...
分类:
Web程序 时间:
2015-09-10 19:32:18
阅读次数:
132
Python的正则表达式模块1 # -*- coding:utf-8 -*-2 3 import re4 text = "JGood is a handsome boy, he is cool, clever, and so on..."5 m = re.match(r"(\w+)\s", text...
分类:
编程语言 时间:
2015-09-10 14:24:04
阅读次数:
154
$cat textfind the Match statementConsult the Get statementusing the Read statement to retrieve data/the .* statement/{hs/.*the \(.*\) statement.*/\1/y...
分类:
其他好文 时间:
2015-09-09 21:15:57
阅读次数:
210
If-Modified-Since,If-Node-Match,ETag,Last-Modified1 属于 Request Headers的是:If-Modified-Since,If-Node-Match;属于 Response Headers的是:ETag,Last-Modified。2 解释...
分类:
Web程序 时间:
2015-09-09 14:45:35
阅读次数:
200
当 HTTP 请求包含 If-XXX 这种样式的首部时,服务器会对附带的条件进行判断,只有判断指定条件为真,才会执行请求。这样的请求首部有五个,分别是If-Modified-Since、If-Unmodified-Since、If-Match、If-None-Match 和 If-Range。If-...
分类:
Web程序 时间:
2015-09-08 21:37:32
阅读次数:
177
一、自定义进度条 1.<ProgressBar
????????android:id="@+id/patch_progress"
????????style="@style/gxProgressStyle"
????????android:layout_width="match_parent"
????????a...
分类:
其他好文 时间:
2015-09-08 20:26:32
阅读次数:
246
正则表达式正则表达式以方法的形式被用于对字符串中的信息进行查找、替换画图提取操作。可处理正则表达式的方法有:regexp.exec, regexp.test,string.match, string.replace, string.search, 和string.split。结构有两个方法来创建一个...
分类:
编程语言 时间:
2015-09-08 19:51:29
阅读次数:
150
functionhasClass(obj,cls){returnobj.className.match(newRegExp(‘(\\s|^)‘+cls+‘(\\s|$)‘));}functionaddClass(obj,cls){if(!this.hasClass(obj,cls))obj.className+=""+cls;}functionremoveClass(obj,cls){if(hasClass(obj,cls)){varreg=newRegExp(‘(\\s|^)‘+cls+‘(\\s|$)‘)..
分类:
Web程序 时间:
2015-09-08 16:45:43
阅读次数:
125
防火墙iptables分析一、iptables基本概念匹配(match):符合指定的条件,比如指定的IP地址和端口。丢弃(drop):当一个包到达时,简单地丢弃,不做其它任何处理。接受(accept):和丢弃相反,接受这个包,让这个包通过。拒绝(reject):和丢弃相似,但它还会向发送这个包的源主...
分类:
其他好文 时间:
2015-09-08 15:28:51
阅读次数:
148