码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果)
js判断用户的浏览设备是移动设备还是PC
<script type="text/javascript"> function browserRedirect() { var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/ ...
分类:移动开发   时间:2016-10-31 13:04:53    阅读次数:233
Java正则表达式
笔记: 正则表达式的三个作用:1、用来进行字符串的匹配2、用来进行替换操作3、用来提取信息 网络爬虫:通过超链接获取所有匹配的信息。使用递归完成。正则提取信息。 正则表达式基础:String的match方法,replace中的使用。java.util.regex类 Pattern中最基础的正则表达式 ...
分类:编程语言   时间:2016-10-31 07:19:08    阅读次数:297
php正则:匹配(),{},[]小括号,大括号,中括号里面的内容
php正则:匹配(),{},[]小括号,大括号,中括号里面的内容 比如有一段字符: 我要匹配,{}括号里面的内容,单独拿出来。 说明: PHP使用正则表达式提取字符串中尖括号<>、小括号()、中括号[]、大括号{}中的字符示例,需要的朋友可以参考下 PS: (?:字符) 表示不捕获这个字符。貌似PH ...
分类:Web程序   时间:2016-10-30 16:26:06    阅读次数:248
openstack之horizon源码分析
一、基础准备: Horizon是基于django webframework开发的标准的Python wsgi程序,django的设计专注于代码的高度可重用,信奉DRY原则,一切面向对象,而Horizon可以说高度match了django的设计风格。网站程序基本有三部分组成,业务逻辑代码(Python ...
分类:其他好文   时间:2016-10-30 11:49:54    阅读次数:508
[Angular2 Form] Check password match
Learn how to create a custom validator to check whether passwords match. confirmPasword validator is just a function, also a curry function. So it mea ...
分类:其他好文   时间:2016-10-30 07:33:57    阅读次数:428
python:正则表达式 re
#-*- coding:utf8 -*- # Auth:fulimei #re正则的用法:match匹配从开头 search 取一个就回来了,findout取所以匹配的,slit分割 sub替换 import re res=re.match('^chen','chenronghua')#^匹配字符开 ...
分类:编程语言   时间:2016-10-29 01:39:02    阅读次数:202
(译文)SQL与Mongodb聚合之前的对应关系
本文翻译自:https://docs.mongodb.com/manual/reference/sql-aggregation-comparison/ 由于本人也在学习Mongodb,项目中用到聚合,看到文档这篇不错就翻译一下(仅供参考) SQL中的聚合函数和Mongodb中的管道相互对应的关系: ...
分类:数据库   时间:2016-10-28 20:04:15    阅读次数:216
[Angular2 Animation] Control Undefined Angular 2 States with void State
Each trigger starts with an “undefined” state or a “void” state which doesn’t match any of your currently defined states. You have to be aware of when ...
分类:其他好文   时间:2016-10-28 17:44:20    阅读次数:245
获取请求参数js代码
/*获取请求参数*/ (function($){ $.getUrlParam=function(name){ varreg=newRegExp("(^|&)"+name+"=([^&]*)(&|$)"); varr=window.location.search.substr(1).match(reg); if(r!=null) returndecodeURIComponent(r[2]); returnnull; }; })(jQuery);
分类:Web程序   时间:2016-10-28 16:07:05    阅读次数:173
ionic2rc版常见的一些坑
1、不建议在src/app的目录里添加其他ts文件,否在在build android的时候会报错 bundle failed: Could not resolve 'xxx.ts' from **/app.module.js 2、不建议多个页面文件共用一个文件夹,在ionic build andro ...
分类:其他好文   时间:2016-10-28 13:29:38    阅读次数:132
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!