码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果
grep,awk和sed
commons: all of them could use regular-expression to match the result. differences: 1)grep: search for files with patterns. 2)awk: any...
分类:其他好文   时间:2014-08-22 15:51:09    阅读次数:224
querystring
function getParameterByName(name) { var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search); return match && decodeURICompon...
分类:其他好文   时间:2014-08-22 14:21:08    阅读次数:174
设计模式概论
由于性子急,翠花上菜:设计模式分类:创建模式、结构模式与行为模式创建模式: 工厂模式(Factory) 单例模式(Signleton) 构建模式(Builder) 原型模式(Prototype)结构模式: 适配器模式(Adapter):Match interfaces of differe...
分类:其他好文   时间:2014-08-22 10:34:35    阅读次数:165
ListView 性能优化------使用ViewHolder,修改layout_weight属性为“match_parent”
转载自:http://blog.csdn.net/pkxiuluo01/article/details/7380860Adapter是ListView界面与数据之间的桥梁,当列表里的每一项显示到页面时,都会调用Adapter的getView方法返回一个View。如果列表中有很多的项时会占用极大的系统...
分类:其他好文   时间:2014-08-21 22:29:14    阅读次数:258
Android开发配置,消除SDK更新时的“https://dl-ssl.google.com refused”异常
消除SDK更新时的“https://dl-ssl.google.com refused”错误消除SDK更新时,有可能会出现这样的错误:Download interrupted: hostname in certificate didn't match: != Download interrupte....
分类:移动开发   时间:2014-08-21 18:53:44    阅读次数:273
本地跨域操作iframe的提示
Failed to read the ‘contentDocument‘ property from ‘HTMLIFrameElement‘: Blocked a frame with origin "null" from accessing a frame with origin "null". Protocols, domains, and ports must match.? 不想...
分类:其他好文   时间:2014-08-21 17:26:44    阅读次数:164
PHP 正则通配符
$a = preg_match('/ph+p/','aaaphpbbbp');+的前导就是h$a = preg_match('/ph+p/','aaaphhhhhhhhhhpbbbp');//第一个参数是匹配模式//什么叫匹配,通过模式一个个比过去,注意这里是一个个echo $a;$a = preg...
分类:Web程序   时间:2014-08-20 22:31:02    阅读次数:347
excel使用技巧之一
两个excel表格去除重复的数据,一个大表,一个小表,大表中包含了小表的数据,需要将大表中包含小表的记录删除。简单例子,下面为两个表100110110021021003103100410410021021004104第一步在大表的空白格(C1)中插入公式:IF(COUNT(MATCH(A1&B1,S...
分类:其他好文   时间:2014-08-19 18:32:05    阅读次数:175
java模式匹配以及相应的例题
public?class?PatternMatching?{ ?/* ??*?该方法用来判断子串是否存在于父串中?若存在返回true,否则返回false?searchMe表示父串,substring表示子串 ??*/ ?public?boolean?match(String?searchM...
分类:编程语言   时间:2014-08-18 18:56:33    阅读次数:201
[JavaScript] js判断是否在微信浏览器中打开
用JS来判断了,经过查找资料终于实现了效果,function is_weixn(){ var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i)=="micromessenger") { return t...
分类:微信   时间:2014-08-18 18:29:12    阅读次数:332
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!