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/config/configuration.yml中做后添加 openssl_verify_mode: ‘none‘
分类:
其他好文 时间:
2015-09-19 15:25:47
阅读次数:
150
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来判断浏览器类型。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. preg_match()和preg_match_all() ????????int prag_match($pattern,$subject,可选参数$matchs);????只进行一次匹配,返回值0或者1...
分类:
Web程序 时间:
2015-09-17 12:03:51
阅读次数:
147
原生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
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
> 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