PCRE库函数中,正则匹配模式使用分隔符与元字符组成,分隔符可以是非数字、非反斜线、非空格的任意字符。经常使用的分隔符是正斜线(/)、hash符号(#) 以及取反符号(~),例如:/foo bar/#^[^0-9]$#~php~如果模式中包含分隔符,则分隔符需要使用反斜杠(\)进行转义。/http:...
分类:
其他好文 时间:
2015-03-31 14:23:34
阅读次数:
100
前面提到的上下文环境和作用域的知识,除了了解这些知识之外,还是理解闭包的基础。至于“闭包”这个词的概念的文字描述,确实不好解释,我看过很多遍,但是现在还是记不住。但是你只需要知道应用的两种情况即可——函数作为返回值,函数作为参数传递。第一,函数作为返回值如上代码,bar函数作为返回值,赋值给f1变量...
分类:
编程语言 时间:
2015-03-31 12:17:06
阅读次数:
171
在CRM的开发中ribbon的开发是比较重要的一环,很多客制化的功能都需要动用ribbon区,CRM2013中的名字已经改叫command bar了,但从老版本过来的人都还是习惯叫他ribbon。
Ribbon区加按钮后往往会关联一系列的webresources,javascript就是其中的一种,一般的ribbon开发都是基于form的,要动用home或者Sub-grid的并不太多。...
分类:
编程语言 时间:
2015-03-30 18:52:50
阅读次数:
244
正向预查:1. 正向正预查:(?=)例如:foo(?=bar) //匹配后面带有bar的foo它可以匹配: foobar, abcfoobar 中的foo但是不能匹配:fooabc 中的foo2. 正向负预查:(?!)例如:foo(?!bar) //匹配后面不带bar的foo它可以匹配:...
分类:
其他好文 时间:
2015-03-30 08:03:31
阅读次数:
599
在activity中调用以下方法:
/**
* Apply KitKat specific translucency.
*/
private void applyKitKatTranslucency() {
// KitKat translucent navigation/status bar.
if (Build.VERSI...
分类:
其他好文 时间:
2015-03-29 13:39:46
阅读次数:
204
NMBottomTabBarControllerA customisable tab bar controller for iOS written in Objective C. It uses auto layout.一个自定义的Tabbar控制器,使用了自动布局。RequirementsiOS ...
分类:
其他好文 时间:
2015-03-29 00:29:28
阅读次数:
153
createproc proc_paging(@pageSizeint,@pageCurrentint)asbeginselect*from(selectROW_NUMBER()over(ORDERBY 排序字段) rownum,*from 表) 别名whererownum between(@pag...
分类:
数据库 时间:
2015-03-29 00:28:59
阅读次数:
189
I would like to force the overflow icon to always show in the action bar (assuming there are overflow items). On models with a menu button, sometimes the overflow icon doesn‘t appear and users must...
分类:
其他好文 时间:
2015-03-28 20:31:01
阅读次数:
153