- 博客(5)
- 资源 (2)
- 收藏
- 关注
转载 Cocos2d-x 3.0 动作
//执行一个action动作对象 runAction("action对象"); //暂停一个对象的动作 Director::sharedDirector()->getActionManger()->pauseTarget("对象"); //暂停所有对象的动作 Director::sharedDirector
2014-06-14 19:33:56 839
原创 windows定时删除一天前备份
@echo offd:cd D:/sharedfoldforfiles /S /M *.* -d -1 /c "cmd /c del /f @path"bat文件然后添加window
2014-06-13 18:09:57 740
原创 页面抓取,去除超链接
$page="http://brazil2014.yahoo.co.jp/schedule/list";$html = file_get_contents($page,'r'); $pattern = "/(.*?)/si";preg_match_all($pattern,$html,$pg);//print_r($pg);die;foreach($pg['1'] as $k=>$v){
2014-06-13 12:58:35 596
原创 下载
$rootPath=$_SERVER['DOCUMENT_ROOT'];$filePath = $_GET [filePath];if ($filePath == "")return null;else{$servername = $_SERVER["HTTP_HOST"];$needstr="/^(http:\/\/)?([^\/]+)/i";if(pre
2014-06-09 10:54:19 474
原创 两个时间差几天几小时
$time1=strtotime("2014-6-15 00:00:00"); $time2=strtotime("now"); $sec=$time1-$time2; if($sec < 0){ $sec = -$sec; $datedis['0']="-"; }else{ $datedis['0']="+"; } $year=floor($sec/3600/24
2014-06-09 10:18:25 526
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人