在php中preg_match()函数是用来执行正则表达式的一个常用的函数,下面我来给大家详细介绍preg_match使用方法。函数用法intpreg_match_all ( string pattern, string subject, array matches [, int flags] )例...
分类:
Web程序 时间:
2015-05-30 15:14:50
阅读次数:
114
paint的使用 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout...
分类:
其他好文 时间:
2015-05-30 13:38:23
阅读次数:
111
1. -v 外部指定变量.awk -v num=$num -f sql.awk "backup/"$file在sql.awk中可以利用num这个变量2.RLENGTH 由match函数所匹配的字符串的长度。RSTART 由match函数所匹配的字符串的第一个位置。match 函数返回在字...
分类:
其他好文 时间:
2015-05-30 01:45:09
阅读次数:
114
三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。
(1) fill_parent
设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或控件为fill_parent将强制性让它布满整个屏幕。
(2) wrap_conte...
分类:
移动开发 时间:
2015-05-29 18:05:38
阅读次数:
121
C#regex是正则表达式类用于string的处理,查找匹配的字符串。1,先看一个例子Regex regex=new Regex(@”yOK“);//我们要在目标字符串中找到"OK"Match m=regex.Match("fjsladfyOK");console.writeline(m.tostr...
的来源 (src):
The Light bulb
点击灯泡就可以打开或关闭这盏灯-->
function changeImage()
{
element=document.getElementById('myimage')
if (element.src.match("bulbon"))
{
...
分类:
编程语言 时间:
2015-05-29 14:03:29
阅读次数:
1746
前言最近看到朋友制作的Android APP使用了极少的图片,但是图形却极其丰富,问了之后得知是使用shape绘制的,有很多优点。
下面是我整理的一些素材:预览下面是图片预览:代码布局文件<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_p...
分类:
移动开发 时间:
2015-05-29 13:59:35
阅读次数:
222
1.准备工作
每一个view,只是img不一样,其他都是一样的
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:la...
分类:
移动开发 时间:
2015-05-29 10:03:45
阅读次数:
129
<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="match_...
分类:
其他好文 时间:
2015-05-29 06:22:01
阅读次数:
247
eclipse中使用maven插件的时候,运行run as maven build的时候报错-Dmaven.multiModuleProjectDirectory system propery is not set.Check $M2_HOME environment variable and mv...
分类:
其他好文 时间:
2015-05-29 06:13:59
阅读次数:
289