码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果
NSUserDefaults API中英文文档简介及使用
NSUserDefaults API中英文文档简介及使用 Overview The NSUserDefaults class provides a programmatic interface for interacting with the defaults system. The defaults system allows an application to customize its behavior to match a user’s preferences. For example, y...
分类:Windows程序   时间:2014-07-30 01:06:52    阅读次数:484
Android SDK安装时碰到的问题之解决办法
问题: hostname in certificate didn‘t match: <dl-ssl.google.com> != <www.google.com> Fetching URL: https://dl-ssl.google.com/android/... 解决办法: 第一步: 打开Windows中C:\WINDOWS\system32\drivers...
分类:移动开发   时间:2014-07-29 18:29:22    阅读次数:233
常用JS验证函数总结
/** ?* 检查输入的一串字符是否全部是数字 ?* 输入:str ?字符串 ?* 返回:true 或 flase; true表示为数字 ?*/ function checkNum(str){ ? ? return str.match(/\D/) == null; } /** ?* 检查输入的一串字符...
分类:Web程序   时间:2014-07-29 16:12:39    阅读次数:216
android:layout_weight的真实含义
首先声明只有在Linearlayout中,该属性才有效。之所以android:layout_weight会引起争议,是因为在设置该属性的同时,设置android:layout_width为wrap_content和match_parent会造成两种截然相反的效果。android:layout_wei...
分类:移动开发   时间:2014-07-29 11:41:16    阅读次数:228
match、search、sub、findall、compile区别
摘自网络,综合自己的理解: 函数名原型详解返回类型注意事项re.matchimport re re.match(pattern,string,flags)pattern:正则表达式,匹配成功,返回一个Match,否则返回一个None string:要匹配的字符串 flags...
分类:其他好文   时间:2014-07-29 10:27:38    阅读次数:218
list view item高度设置
如何设置list view中的item的高度呢?示例如下: //直接在这里设置高度是不会生效的。 按照如下修改: 另外,如何避免list view adapter反复getivew?list view在layout种设置时width/height 为match_parent. 或...
分类:其他好文   时间:2014-07-28 21:23:44    阅读次数:226
php文件操作
<?phpheader(‘Content-type:text/html;charset=utf-8‘);/***[checkFilename检验文件名的合法性]*@param[string]$filename[文件名]*@return[bool][合法返回真]*/functioncheckFilename($filename){ $pattern=‘/[\/,\*,<>,\?\|]/‘; if(preg_match($pattern,$filename)){..
分类:Web程序   时间:2014-07-28 16:49:34    阅读次数:318
Android查看网络图片例子
1.布局文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:orientation=...
分类:移动开发   时间:2014-07-28 16:04:13    阅读次数:264
注册常用正则表达式
function isEmail(email){ var regm2 = /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/; if (!email.match(regm2)) {...
分类:其他好文   时间:2014-07-28 15:02:53    阅读次数:220
【安卓笔记】仿乐安全首页动态效果
先看效果: 布局: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout...
分类:移动开发   时间:2014-07-27 11:39:04    阅读次数:238
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!