码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果)
JS获取URL参数
使用正则表达式获取URl参数function GetQueryString(id){ var reg = new RegExp("(^|&)"+ id+"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(r...
分类:Web程序   时间:2015-11-25 10:09:58    阅读次数:123
Python一般错误
1. IndentationError: unindent does not match any outer indentation level格式对齐的问题。Python对空格和Tab有严格区别
分类:编程语言   时间:2015-11-24 20:21:46    阅读次数:142
浅析:Pulltorefresh使用中碰到的问题
第一在使用XScrollView布局是,无法在该布局.xml文件,放置内容布局控件,假如放置了会报错<com.markmao.pulltorefresh.widget.XScrollView android:id="@+id/scroll_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@..
分类:其他好文   时间:2015-11-23 19:18:32    阅读次数:185
JavaScript验证时间格式
1. 短时间,形如 (13:04:06)function isTime(str){var a = str.match(/^(\d{1,2})(:)?(\d{1,2})\2(\d{1,2})$/);if (a == null) {alert('输入的参数不是时间格式'); return false;}...
分类:编程语言   时间:2015-11-19 22:39:14    阅读次数:239
FIS3中使用less
安装插件:npm install -g fis-parser-lessnpm install -g fis3-postpackager-loader配置:fis-conf.js使用fis-parser-less 插件进行解析,.less 文件后缀构建后被改成 .css 文件fis.match('*....
分类:其他好文   时间:2015-11-19 22:26:15    阅读次数:249
FIS3配置fis-conf.js
设置规则的配置接口:fis.match(selector, props);1.添加md5戳:对 js、css、png 图片引用 URL 添加 md5 戳:fis.match('*.{js,css,png}', { useHash: true});2.js压缩:使用fis-optimizer-ugl....
分类:Web程序   时间:2015-11-19 18:46:41    阅读次数:520
redislive(REDIS监控工具)的安装实例分享
环境:Redhat linux 6.5(yum的安装完成,如未安装yum的话,python的相关安装可以通过其他方式安装)一、Python环境的准备由于RedisLive由Python编写,同时,依赖以下几个包:backports.ssl_match_hostname、tornado、redis、s...
分类:其他好文   时间:2015-11-18 22:51:20    阅读次数:473
widget小插件--时间显示
widget.xml <?xml?version="1.0"?encoding="utf-8"?> <LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android" ????android:layout_width="match_parent" ????android:layout_heig...
分类:其他好文   时间:2015-11-18 10:53:45    阅读次数:141
Java compiler level does not match the version of
修改了编译级别之后出现如下错误提示: Description ResourcePath LocationType Java compiler level does not match the version of the installed Java project facet.SSJ UnknownFaceted Project Problem (Jav...
分类:编程语言   时间:2015-11-17 17:12:26    阅读次数:314
shopnc商城专题页的伪静态支持
shopnc系统默认专题模块是没有伪静态的,这确实不知道是为什么。不过想让它支持伪静态,实现起来也很简单。打开shopnc的路由功能类文件,/core/framework/core/route.php。找到_shopPathInfo方法。里面是对符合规则的伪静态地址进行正则替换,我们在它的$reg_match_from数组里..
分类:其他好文   时间:2015-11-17 07:12:41    阅读次数:312
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!