码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果)
android关于屏幕适配的几点建议
1、使用wrap_content、match_parent、weight; 2、使用相对布局,尽量不使用绝对布局; 3、使用限定符,如:layout-large/xxx.xml,这样大屏设备就会自动使用该布局; 4、使用最小宽度限定符,如:layout-sw700dp/xxx.xml,这样当屏幕的宽度超过700dp时就会使用该布局; 5、针对不同的分辨率,提供具体的布局,如:res/lay...
分类:移动开发   时间:2016-06-12 01:52:17    阅读次数:248
Multiple actions were found that match the request
WebAPI错误信息:{"Message":"Anerrorhasoccurred.","ExceptionMessage":"Multipleactionswerefoundthatmatchtherequest:\r\nSystem.Collections.Generic.IEnumerable`1[Lybing.Invoice.DataContract.Product]Get(Lybing.Invoice.Business.Model.ProductSearch)ontypeLybing.In..
分类:其他好文   时间:2016-06-12 00:27:39    阅读次数:687
Python正则表达式
1.re.match函数 import re print re.match("www","www.baidu.com").span()#(0,3) 2.group import re line = "Cats are smarter than dogs" matchObj = re.match(r'... ...
分类:编程语言   时间:2016-06-09 22:11:45    阅读次数:193
表达式搜集
属性匹配 包括属性名属性值 ?匹配所有的属性,甚至包含一些不规则情况。反正尽量是与浏览器同步 '<div class = main id="box">'.match(/[\s][^\s]+[^=]*=[\s]*["]?[^>\s"]*["]?/g) ? 匹配具体属性,下例将匹配class属性 '<d ...
分类:其他好文   时间:2016-06-08 18:44:50    阅读次数:112
JS获取地址栏参数的方法
// 用正则表达式获取地址栏参数 function GetQueryString(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match( ...
分类:Web程序   时间:2016-06-08 12:22:38    阅读次数:152
python正则
python 正则 re 模块常用方法 re.match #从头匹配 re.search #全局匹配第一个符合的字符串 re.findall #匹配全部,放到列表 re.finditer re.split re.sub print (r.group) #打印正则匹配的全部东西 print (r.gr ...
分类:编程语言   时间:2016-06-07 16:08:29    阅读次数:144
GitHub 排名前 100 的安卓、iOS项目简介
GitHub Android Libraries Top 100 简介 转自:http://www.devstore.cn/essay/essayInfo/6485.html  排名完全是根据 GitHub 搜索 Java 语言选择 (Best Match) 得到的结果, 然后过滤了跟 Android 不相关的项目, 所以排名并不具备任何官方效力, 仅供参考学习, 方便初学者快速了...
分类:移动开发   时间:2016-06-07 14:59:07    阅读次数:449
Mybatis 异常: The content of elements must consist of well-formed character data or markup
原因很简单:在ibatis的配置文件中不能出现小于号(>) <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> delete from t_match where CREATE_TIME<=#{createTime,jd ...
分类:其他好文   时间:2016-06-07 14:25:13    阅读次数:208
RalativeLayout_exc
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_ ...
分类:其他好文   时间:2016-06-06 21:50:52    阅读次数:207
使用ThinkPHP自带的Http类下载远程图片到本地的实现代码
private function downimg($text,$title){ $pattern="/<[img|IMG].*?src=[\'|\"](.*?(?:[\.gif|\.jpg|\.png]))[\'|\"].*?[\/]?>/";//匹配图片的正则式 if(preg_match_all ...
分类:Web程序   时间:2016-06-06 16:21:20    阅读次数:897
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!