使用正则表达式获取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
1. IndentationError: unindent does not match any outer indentation level格式对齐的问题。Python对空格和Tab有严格区别
分类:
编程语言 时间:
2015-11-24 20:21:46
阅读次数:
142
第一在使用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
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
安装插件: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
设置规则的配置接口: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
环境: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.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
修改了编译级别之后出现如下错误提示: 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的路由功能类文件,/core/framework/core/route.php。找到_shopPathInfo方法。里面是对符合规则的伪静态地址进行正则替换,我们在它的$reg_match_from数组里..
分类:
其他好文 时间:
2015-11-17 07:12:41
阅读次数:
312