function isMobile(){ var sUserAgent= navigator.userAgent.toLowerCase(), bIsIpad= sUserAgent.match(/ipad/i) == "ipad", bIsIphoneOs= sUserAgent.ma...
分类:
移动开发 时间:
2015-03-31 17:41:02
阅读次数:
190
---------------------布局页面----------------------------------------------
android:id="@+id/luck_detail_adv_ContainerRl"
android:layout_width="match_parent"
...
分类:
移动开发 时间:
2015-03-31 16:10:45
阅读次数:
190
Regex rex = new Regex(@"[\u4E00-\u9FFF]");var result = rex.Match(registReq.UserName);if (result.Success){ mResp.ErrorInfo = "用户名不能是汉字!"; return ...
分类:
其他好文 时间:
2015-03-31 12:24:29
阅读次数:
142
方法一:正则分析法function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(r...
分类:
Web程序 时间:
2015-03-30 21:06:03
阅读次数:
420
preg_match方法利用正则表达式,处理一个字符串,将所得结果保存在array对象中,array[0]保存匹配整个正测表达式的串;array[1]保存第一个由小括号括起来的字串,后面依次类推。int preg_match ( string $pattern , string $subject [...
分类:
Web程序 时间:
2015-03-30 18:32:11
阅读次数:
135
布局非常简单。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="...
分类:
其他好文 时间:
2015-03-30 16:35:16
阅读次数:
172
一个int占多少个字节?这个问题我们往往得到的答案是4.可是int究竟占多少个字节,却跟你的机器环境有关.As you can see, the typical data type sizes match the ILP32LL model, which is what most compilers...
分类:
其他好文 时间:
2015-03-30 16:04:28
阅读次数:
192
解题思路:
裸的匈牙利算法,看最大匹配是否等于P;
#include
#include
#include
#include
#include
#include
using namespace std;
const int MAXN = 500;
int p, n;
int G[MAXN][MAXN];
int match[MAXN];
int vis[MAXN];
int path...
分类:
其他好文 时间:
2015-03-30 11:28:29
阅读次数:
118
解题思路:
枚举棋盘上所有格子,如果讲该点删除后,最大匹配数会减少,则该点为关键点。
#include
#include
#include
#include
#include
#include
using namespace std;
const int MAXN = 100 + 10;
int G[MAXN][MAXN];
int vis[MAXN];
int match[MAX...
分类:
其他好文 时间:
2015-03-30 11:24:10
阅读次数:
106
struts1.3中报错
一个项目中struts-config.xml文件老是报错
在的标签中报错:
The content of element type "struts-config" must match "(display-name?,description?,form-beans?,global-exceptions?,global-forwards?,action-
mapp...
分类:
其他好文 时间:
2015-03-29 18:08:11
阅读次数:
192