r最近使用jqueyr的ajax后台验证,直接返回一个Boolean类型的值的到前台,使用json格式传到前台
var result = $.ajax({
url: '/'+window.location['pathname'].split('/')[1]+'/resourcePrivate/validateResourcePrivate?rid='+rid,
async: fals...
分类:
编程语言 时间:
2014-12-01 10:08:09
阅读次数:
160
opencv split和merge操作分类:OpenCv2014-05-13 09:38656人阅读评论(1)收藏举报[cpp]view plaincopyprint?#include#include#include#includeusingnamespacecv;usingnamespacest...
分类:
其他好文 时间:
2014-11-30 23:06:19
阅读次数:
416
function validateCNDate( strValue ) {
var objRegExp = /^\d{4}(\-|\/|\.)\d{1,2}\1\d{1,2}$/
if(!objRegExp.test(strValue))
return false;
else{
var arrayDate = strValue.split(RegExp.$1);
...
分类:
Web程序 时间:
2014-11-30 18:49:33
阅读次数:
150
^_^是在WIN下开发。配置是nignxphpmysql默认时启动phpcgi是D:\php\php-cgi.exe-b127.0.0.1:9000-cD:\phpfind\phpa\php.ini先看NGINX配置location~\.php(.*)${
fastcgi_pass127.0.0.1:9000;
fastcgi_indexindex.php;
fastcgi_split_path_info^((?U).+\.php)(/?.+)$;
fastcgi_par..
分类:
Web程序 时间:
2014-11-28 12:41:05
阅读次数:
295
php中没有一个和java,c#一样的字符串分割成数组的方法,至少我没有找到.所以我自己写了一个分割字符串为字符数组的方法:/***我的字符串切分的函数*/functionmy_split($str,$seperator){ $str_array=array(); $token=strtok($str,$seperator); $index=0; while($token!==false){ ..
分类:
Web程序 时间:
2014-11-28 06:30:30
阅读次数:
145
#!/usr/bin/python
#CSVtoXML.py
#encoding:utf-8
importcsv,os
fromxml.dom.minidomimportDocument
#prfixFile="creature_data"
defcreateXMLFile(filePrefix):
csvFile=open(filePrefix+‘.csv‘);
headLine=csvFile.readline()
#printheadLine
typeList=headLine.split(‘,..
分类:
编程语言 时间:
2014-11-27 12:58:12
阅读次数:
225
#网上所得非原创function split($inFile, $outPrefix, [Int32] $bufSize){ $stream = [System.IO.File]::OpenRead($inFile) $chunkNum = 1 $barr = New-Object byte[].....
分类:
系统相关 时间:
2014-11-27 12:33:33
阅读次数:
228
用了一个杀毒软件的更新工具,不过它不会自动删除过时的。然后用刚学的python折腾了一个。。。#!/usr/bin/python
importos
importshutil
xxx_dir="/var/www/xxx/rel"
tmp_dir={}
#runupdate
os.system(‘sh/etc/xxx/start.sh‘)
foriinos.listdir(xxx_dir):
tmp=i.split(‘_‘)..
分类:
其他好文 时间:
2014-11-26 19:15:59
阅读次数:
178
push(),pop(),shift(),unshift(),splice(),join(),concat(),sort(),split(),parseInt()// 数组----------------------------------------------------------------...
分类:
编程语言 时间:
2014-11-26 18:28:05
阅读次数:
202
上一篇分析了split的生成,现在接着来说具体的split具体内容及其相关的文件和类。以FileSplit(mapred包下org/apache/hadoop/mapreduce/lib/input/FileSplit.java)为例,它继承了InputSplit接口,包括以下属性:1 publ.....
分类:
其他好文 时间:
2014-11-26 18:17:27
阅读次数:
270