摘要: apache默认路径配置方法 apache的配置 apache已经自带了,只需如下三个命令就可以了。 开启apache服务 sudo apachectl start 停止apache服务 sudo apachectl stop 重启服务 sudo apachectl restart 查看版本 htt 阅读全文
posted @ 2016-03-31 22:01 翌日晨曦 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 学了两天的PHP,整理了一些常用字符串函数的使用 1、trim去掉空格和特殊字符 ltrim/rtrim左空格和有空格 $name=' guiyangxueyuan '; //去掉前后空格 $newname=trim($name); $mame1=ltrim($name); $mame2=rtrim 阅读全文
posted @ 2016-03-30 21:51 翌日晨曦 阅读(241) 评论(0) 推荐(0) 编辑
摘要: //初始化一个label self.label=[[UILabel alloc] init]; //设置自动行数与字符换行 [self.label setNumberOfLines:0]; //给label设置标签 self.label.text=@"首先,我们要明确一点,同步和异步都是在线程中使用 阅读全文
posted @ 2016-03-29 21:09 翌日晨曦 阅读(4219) 评论(0) 推荐(0) 编辑
摘要: 第一种方法系统自带的解析方法(NSXMLParser) //1、指定XML文件 NSString *path=[[NSBundle mainBundle] pathForResource:@"person" ofType:@"xml"]; //转换成data类型对象 NSData *data=[NS 阅读全文
posted @ 2016-03-28 22:34 翌日晨曦 阅读(935) 评论(0) 推荐(0) 编辑
摘要: 1、具体配置过程如下: 第一步、把下载好的GDataXMLNode.h和GDataXMLNode.m拖到工程里面,随便把要解析的文件放到工程里面,可以解析网络请求的数据,我只举本地的例子 第二步、打开GDataXMLNode.h,找到如下图所示的地方,如果没有,不要慌,按照我下面描述的步骤操作,图中 阅读全文
posted @ 2016-03-25 21:36 翌日晨曦 阅读(843) 评论(0) 推荐(0) 编辑
摘要: 初学者的总结的网络请求数据的JSON的解析的两种方法对比,有什么不对的地方还请见谅 //(老方法)网络请求数据JSON解析 //获取访问路径 NSString *path=@"http://1.studyios.sinaapp.com/getAllClass.php"; //封装URl NSURL 阅读全文
posted @ 2016-03-24 22:19 翌日晨曦 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 转自: http://mp.weixin.qq.com/s?__biz=MjM5OTM0MzIwMQ==&mid=404478233&idx=2&sn=ae55d4f70fce47c11958f0b8536f4370&scene=0#wechat_redirect 1.普通断点】 断点(Breakp 阅读全文
posted @ 2016-03-23 22:37 翌日晨曦 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 查询 1、查询所有信息 select * from student 2、查询表中的行数 select count(*) from student 3、降序排列 select * from student order by stuid desc 升序排列 select * from student o 阅读全文
posted @ 2016-03-22 22:36 翌日晨曦 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 主要实现了数据和显示的完全分离,避免频繁的创建空间存放数据,这样大大节省了空间 1、维护一个重用队列 2、当元素离开可见范围时,removeFromsupervie ,并加入重用队列(enquen) 3、当元素要新加入新的元素时,先尝试从重用队列获取可重用元素(dequene),并从重用队列移除 4、如果队列为空,新建元素 5、这些一般都在scollViewDidScroll方法中完成 阅读全文
posted @ 2016-03-21 22:06 翌日晨曦 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 转自:http://mp.weixin.qq.com/s?__biz=MjM5OTM0MzIwMQ==&mid=404356053&idx=5&sn=0ccb4ffa5bd12986898f57aef66edbce&scene=0#wechat_redirect 2、说说以下元素的特性和作用 NSA 阅读全文
posted @ 2016-03-18 22:21 翌日晨曦 阅读(1459) 评论(0) 推荐(0) 编辑