码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果
GridView的用法
<GridView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/main_gv_tuijian" android:numColumns="auto_fit"...
分类:其他好文   时间:2015-02-13 13:25:39    阅读次数:141
自定义控件
1,XML布局<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"><com.eduask.demo3.ui.UiTextViewandroid:marqueeR..
分类:其他好文   时间:2015-02-13 01:44:02    阅读次数:153
js面试题及答案(一)不喜,可放肆喷
1.找出数字数组中最大的元素(使用Match.max函数)Math.max.apply(null, [1,2,3]);2.转化一个数字数组为function数组(每个function都弹出相应的数字)function transition(numArray) { var num; for (var ...
分类:Web程序   时间:2015-02-12 18:22:24    阅读次数:131
android 多选按钮CheckBox的使用
<LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android" ????xmlns:tools="http://schemas.android.com/tools" ????android:layout_width="match_parent" ????android:layout_...
分类:移动开发   时间:2015-02-12 16:32:03    阅读次数:153
限定 edittext 的 输入内容
android:id="@+id/idNumber"                 style="@style/NewServiceEditTextline"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"          ...
分类:其他好文   时间:2015-02-12 14:02:23    阅读次数:112
Gallery
1,xml布局<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"><Galleryandroid:id="@+id/gallery"android:layout_..
分类:其他好文   时间:2015-02-12 02:02:04    阅读次数:192
python re模块学习--正则表达式函数
这里主要介绍Python中常用的正则表达式处理函数。关于python中正则表达式的语法会再总结一篇博文。re.matchre.match尝试从字符串的开始匹配一个模式,如:下面的例子匹配第一个单词。代码如下:#!/usr/bin/envpython#-*-coding:utf-8-*-importretext="JGoodisahandsomeboy,heis..
分类:编程语言   时间:2015-02-11 18:50:14    阅读次数:153
PHP正则表达式
1.PHP中两个常用的正则函数a.preg_match 正则函数,以perl语言为基础语法:preg_match( mode,string subject,array matches) 说明:mode参数---- 正则的模块,也就是正则表达式(语法) subject参数---- 正则的内容 ...
分类:Web程序   时间:2015-02-10 20:20:07    阅读次数:145
判断是否来自微信浏览器
判断是否来自微信浏览器functionisFromWeiXin(){ varua=navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i)=="micromessenger"){ returntrue; } returnfalse; }End
分类:微信   时间:2015-02-10 18:54:59    阅读次数:272
把字符串格式的时间转化为时间格式的函数
1 /**Parses string formatted as YYYY-MM-DD to a Date object. 2 * If the supplied string does not match the format, an 3 * invalid Date (value NaN...
分类:其他好文   时间:2015-02-10 18:30:17    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!