码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果)
php 正则匹配指定url的参数
function get_url_params($url, $arg_name) { $regx = '/.*[&|\?]'. $arg_name .'=([^&]*)(.*)/'; preg_match($regx, $url, $match); retu...
分类:Web程序   时间:2015-07-07 12:48:17    阅读次数:522
一见钟情Sublime
打开 preferences -> Setting-User,加入以下代码{ "font_size": 14, "ignored_packages": [], "auto_complete": true, "auto_match_enabled": true }“auto_complete”: true, “auto_match_enabled”: true 这两...
分类:其他好文   时间:2015-07-07 11:06:15    阅读次数:135
Rails 异常处理
### Rails 异常处理 的多种处理方法  1.  routes match '*path', via: :all, to: 'controller#action' 2.  application.rb 的 exception_app ```ruby     # application.rb     config.exceptions_app = ->(env) ...
分类:其他好文   时间:2015-07-06 19:53:39    阅读次数:93
rightParams.addRule(RelativeLayout.ALIGN_PARENT_RI
<?xml?version="1.0"?encoding="utf-8"?> <RelativeLayout?xmlns:android="http://schemas.android.com/apk/res/android" ????android:layout_width="match_parent" ????android:layout_height="wrap...
分类:其他好文   时间:2015-07-06 18:16:48    阅读次数:209
关于fill_parent,match_parent和wrap_content (转载)
fill_parent&match_parent:在Android2.2及以上版本中,fill_parent与match_parent意思相同(其中fill_parent兼容低版本)。都是尽可能多的占用框架内的空间。wrap_content:在保证框内容不丢失的情况下,尽可能少的占用空间。示例1上面...
分类:其他好文   时间:2015-07-05 10:54:38    阅读次数:100
android开发之GestureDetector手势识别(调节音量、亮度、快进和后退)
写UI布局: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"...
分类:移动开发   时间:2015-07-05 01:00:23    阅读次数:329
iOS开发总结(A0)- Game Center
Game Center 的内容很多,这里主要总结Authentication,match,LeaderBoard1. 关于ui,game center 提供了很多标准ui ,如matchmakervc,friendrequestvc,gamecentervc, leaderboardvc简单易用。我...
分类:移动开发   时间:2015-07-05 00:55:15    阅读次数:212
SlidingPaneLayout
1. layout xml <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-07-04 19:49:02    阅读次数:292
DrawerLayout
1. main layout: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou...
分类:其他好文   时间:2015-07-04 16:45:14    阅读次数:150
F# 学习笔记(函数基础2模式匹配)
模式匹配表达式:[]let main argv = let eval x = match x with |5 -> "优" |4 -> "良" |3 -> "中" |_ -> "差" let y = eval 4 ...
分类:其他好文   时间:2015-07-03 20:28:17    阅读次数:115
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!