码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果)
PHP判断是否为手机客户端
0){// 检查浏览器是否接受 WML. return true; }elseif(preg_match('/(blackberry|configuration\/cldc|hp |hp-|htc |htc_|htc-|iemobile|kindle|midp|mmp|motor...
分类:移动开发   时间:2015-09-19 18:20:32    阅读次数:227
Redmine邮件报错hostname was not match with the server
在redmine/config/configuration.yml中做后添加 openssl_verify_mode: ‘none‘
分类:其他好文   时间:2015-09-19 15:25:47    阅读次数:150
TSQL Merge 用法
TSQL的Merge语句不仅能够同步数据,而且能够将更新的数据输出。一,语法1,when match子句要求Target表中一个数据行只能被更新一次If UPDATE is specified in the clause, and more than one row of matches a ro....
分类:数据库   时间:2015-09-18 20:24:14    阅读次数:326
navigator.userAgent
使用navigator.userAgent来判断浏览器类型。1、浏览器版本号函数:var br=navigator.userAgent.toLowerCase(); var browserVer=(br.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [0,....
分类:其他好文   时间:2015-09-17 15:11:39    阅读次数:128
PHP中正则表达式回顾(1)
先复习一下php中常用的正则表达式常用函数。 ????1. preg_match()和preg_match_all() ????????int prag_match($pattern,$subject,可选参数$matchs);????只进行一次匹配,返回值0或者1...
分类:Web程序   时间:2015-09-17 12:03:51    阅读次数:147
原生js添加class
原生js添加classfunction hasClass(obj, cls) { return obj.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)')); } function addClass(obj, cls) { ...
分类:Web程序   时间:2015-09-16 19:41:20    阅读次数:133
计算广告 读书笔记 计算广告的核心问题
1. 计算广告的核心问题Andrei Broder给出了计算广告这个课题的核心研究挑战:"Find the best match between a given user in a given context and a suitable advertisement."《计算广告》这本书结合市场发展...
分类:其他好文   时间:2015-09-16 15:42:07    阅读次数:299
JS获取url参数的方法
function param(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r ...
分类:Web程序   时间:2015-09-16 14:10:38    阅读次数:118
JS对象类型
> indexOf() >> match() >> replace() >> toUpperCase() >> toLowerCase() >> split() >> attribute and method. -->
分类:Web程序   时间:2015-09-16 14:10:20    阅读次数:132
身份证
if( obj && customerCertiType=="11"){ if(!obj.match(/^\w{18}$/) && !obj.match(/^\w{15}$/)){ //obj.focus(); ...
分类:其他好文   时间:2015-09-16 14:05:34    阅读次数:141
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!