码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果)
php正则表达式匹配函数
';print_r($var); echo ''; }else{ echo $var;}}$pattern='/[0-9]/';$subject='asd78dfgfd1dfg2asdf8sadf6asdf9';$m1=$m2=array();$t1=preg_match($pattern,$sub...
分类:Web程序   时间:2015-06-11 00:07:31    阅读次数:191
[android]完美解决ListView加载网络图片乱跳问题
布局文件:只有一个ListView <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:lay...
分类:移动开发   时间:2015-06-10 22:41:22    阅读次数:661
VS 2012 No exports were found that match the constraint 解决办法
删除C:\Users\你的用户名\AppData\Local\Microsoft\VisualStudio\11.0这里面的全部文件本文固定链接:http://litianchang.cn/vs-2012-no-exports-were-found-that-match-the-constraint...
分类:其他好文   时间:2015-06-10 21:03:30    阅读次数:113
java正则表达式 match、find匹配位置
如题,对于java正则表达式这几个方法匹配一次后的,匹配位置搞不太清楚,就写了几个例子。如下: String ss="ooaaoo"; Pattern pt=Pattern.compile("(o+)"); Matcher mt=pt.matcher(ss); // mt.lookingAt(); // mt.matches(); ...
分类:编程语言   时间:2015-06-10 17:30:31    阅读次数:365
js判断手机和微信
//判断手机浏览器var ua = navigator.userAgent;var ipad = ua.match(/(iPad).*OS\s([\d_]+)/),isAndroid = ua.match(/(Android)\s+([\d.]+)/),isMobile = isIphone || ...
分类:微信   时间:2015-06-10 17:08:16    阅读次数:259
实现页面切换(动画效果实现,不用ViewPager)
源码地址 http://write.blog.csdn.net/postedit/46439929 先看主页面布局activity_main <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" and...
分类:其他好文   时间:2015-06-10 12:19:15    阅读次数:107
Android进度条progressbar
xml文件代码部分<ProgressBar android:id="@+id/firstprobar" android:layout_width="match_parent" android:layout_height="wrap_content" android:max="200" android:progress="100" style="?android:attr/progressBarStyleHorizontal" /> <Button android:id="@+id..
分类:移动开发   时间:2015-06-10 01:20:51    阅读次数:127
Android中ViewPager的使用
我们在一个apk中第一次开始的时候,会有一个guide界面,一般使用ViewPager来完成。布局文件如下: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_p...
分类:移动开发   时间:2015-06-09 17:16:18    阅读次数:134
这些年,我收集的JavaScript代码(一)
一、取URL中的参数 function getParameterByName(name) { var match = RegExp('[?&]' + name + '=([^&]*)') .exec(window.location.search); ...
分类:编程语言   时间:2015-06-09 17:07:06    阅读次数:124
POJ 1466
1 #include 2 #include 3 #define MAXN 505 4 using namespace std; 5 6 int edge[MAXN][MAXN]; 7 int match[MAXN]; 8 bool ck[MAXN]; 9 10 int hungary(int n.....
分类:其他好文   时间:2015-06-09 16:16:59    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!