码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果
安卓第一次小结
文本框:存放文本的<TextViewandroid:id="@+id/textView1"//控件的身份android:layout_width="wrap_content"android:layout_height="wrap_content"//wrap_content适应内容//match_parent填充容器//fill_parent跟match_parent一样的//直接使用整数单位dpandroid:layout_align..
分类:移动开发   时间:2015-05-24 06:40:31    阅读次数:261
Android布局
1、对于这个案例来说:<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"android:weightSum="..
分类:移动开发   时间:2015-05-23 06:40:43    阅读次数:187
随手记忆11
33 xmlns:internal="http://schemas.android.com/apk/prv/res/android"34 android:id="@+id/swn_expanded_hitspace"35 android:layout_width="match_parent"36 a...
分类:其他好文   时间:2015-05-22 19:01:45    阅读次数:443
js内置对象
1.Array 属性: constructor 所建立对象的函数参考 prototype 能够为对象加入的属性和方法 index For an array created by a regularexpression match, the zero-based index of the match ...
分类:Web程序   时间:2015-05-22 18:41:02    阅读次数:117
PHP中常用的函数
1、php 字符串截取函数2、php取得当前时间函数3、php 字符串长度函数4、几种php 删除数组元素方法5、php中var_dump()函数的详解说明6、PHP preg_match正则表达式的使用7、php 判断文件或目录是否存在8、php get_magic_quotes_gpc()函数用...
分类:Web程序   时间:2015-05-22 12:55:59    阅读次数:149
Android学习笔记(八)
android中常见空间的使用方法1.TextViewTextView主要用于在界面上显示一段文本信息,如下面代码所示: 其中,在TextView标签中:android:id 给当前控件定义了一个唯一标识符;android:layout_width 指定了控件的宽度,其中match_paren...
分类:移动开发   时间:2015-05-22 00:23:01    阅读次数:218
JS判断是否是微信打开页面
function isWeiXin(){ var ua = window.navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i) == 'micromessenger' || ua.match(/_SQ_/i) ...
分类:微信   时间:2015-05-22 00:00:07    阅读次数:373
JS判断是否是微信打开页面
function isWeiXin(){ var ua = window.navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i) == 'micromessenger' || ua.match(/_SQ_/i...
分类:微信   时间:2015-05-21 12:19:37    阅读次数:296
分析nginx ip地址来源
接上一篇的日志格式,我们已经筛选出了所有的IP地址、做法稍有不同。nginx正则把IP写进文件里、还是那句话数据太大我们不能写进列表里边:defgetIP(): f=open(log,‘r‘) IPdic={} forloglineinf.readlines(): matchs=p.match(logline) ifmatchs!=None: allGroups=matchs.groups(..
分类:其他好文   时间:2015-05-20 18:53:07    阅读次数:181
Android中五中布局文件的使用和介绍
Android的布局风格   布局应该从外往里写 1.LinearLayout(线性布局) xml version="1.0" encoding="utf-8"?> LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"...
分类:移动开发   时间:2015-05-20 16:30:25    阅读次数:218
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!