<script type="text/javascript"> function browserRedirect() { var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/ ...
分类:
移动开发 时间:
2016-10-31 13:04:53
阅读次数:
233
笔记: 正则表达式的三个作用:1、用来进行字符串的匹配2、用来进行替换操作3、用来提取信息 网络爬虫:通过超链接获取所有匹配的信息。使用递归完成。正则提取信息。 正则表达式基础:String的match方法,replace中的使用。java.util.regex类 Pattern中最基础的正则表达式 ...
分类:
编程语言 时间:
2016-10-31 07:19:08
阅读次数:
297
php正则:匹配(),{},[]小括号,大括号,中括号里面的内容 比如有一段字符: 我要匹配,{}括号里面的内容,单独拿出来。 说明: PHP使用正则表达式提取字符串中尖括号<>、小括号()、中括号[]、大括号{}中的字符示例,需要的朋友可以参考下 PS: (?:字符) 表示不捕获这个字符。貌似PH ...
分类:
Web程序 时间:
2016-10-30 16:26:06
阅读次数:
248
一、基础准备: Horizon是基于django webframework开发的标准的Python wsgi程序,django的设计专注于代码的高度可重用,信奉DRY原则,一切面向对象,而Horizon可以说高度match了django的设计风格。网站程序基本有三部分组成,业务逻辑代码(Python ...
分类:
其他好文 时间:
2016-10-30 11:49:54
阅读次数:
508
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
#-*- coding:utf8 -*- # Auth:fulimei #re正则的用法:match匹配从开头 search 取一个就回来了,findout取所以匹配的,slit分割 sub替换 import re res=re.match('^chen','chenronghua')#^匹配字符开 ...
分类:
编程语言 时间:
2016-10-29 01:39:02
阅读次数:
202
本文翻译自:https://docs.mongodb.com/manual/reference/sql-aggregation-comparison/ 由于本人也在学习Mongodb,项目中用到聚合,看到文档这篇不错就翻译一下(仅供参考) SQL中的聚合函数和Mongodb中的管道相互对应的关系: ...
分类:
数据库 时间:
2016-10-28 20:04:15
阅读次数:
216
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
/*获取请求参数*/
(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
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