Chinaunix首页 | 论坛 | 博客
  • 博客访问: 85700
  • 博文数量: 38
  • 博客积分: 350
  • 博客等级: 一等列兵
  • 技术积分: 365
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-30 09:14
个人简介

每一种技术都有其诱人之处。

文章分类

全部博文(38)

文章存档

2016年(2)

2014年(23)

2011年(13)

我的朋友

发布时间:2014-05-26 12:04:52

fstream& fstream::getline(char*pbuf,int n,char delim);返回fstream 自身引用,此时fstream 的状态是读完当前行后的状态。Example     while(f.good()){         f.getline(buf,MAX_PATH);     }.........【阅读全文】

阅读(685) | 评论(0) | 转发(0)

发布时间:2014-05-21 13:59:34

1. 下载debugkit https://github.com/cakephp/debug_kit/archive/master.zip2. 解压到cake/app/plugin 并重命名为DebugKit3. app/Config/bootstrap.php 开放加载DebugKit 插件。    CakePlugin::LoadAll();    CakePlugin::load('DebugKit');4. AppController 中添加DebugKit Component.........【阅读全文】

阅读(1433) | 评论(0) | 转发(0)

发布时间:2014-05-20 10:51:41

width和height定义的是Content部分的宽度和高度,padding border margin的宽度依次加在外面。背景会填充padding和content部分。但是由于浏览器设计上的问题,不同浏览器显示效果会有些不同。左右Margin加倍的问题当box为float时,IE6中box左右的margin会加倍 左面的inner的左面margin明显大于5px。这时候,定义inn.........【阅读全文】

阅读(472) | 评论(0) | 转发(0)

发布时间:2014-05-19 10:57:20

GPL 为通用公共许可证(General Public Licence), 允许使用者使用、修改、发布,可用与商业用途,但其也必须遵循GPL,即也要开发源码。LPL 为宽通用公共许可证(Less General Public Licence), 与GPL 区别是其用于商业用途的软件不必遵循GPL或LGPL,即可以不开放源码。.........【阅读全文】

阅读(848) | 评论(0) | 转发(0)

发布时间:2014-05-16 15:51:35

    应用:在user 模块中loginAction 登录成功后,把用户信息保存到$_SESSION之中,然后调整到其它模块。点击(此处)折叠或打开$session = new Container('user');$session->offsetSet('uname','visitor');///此时$_SESSION['user']['uname'] === 'visitor';.........【阅读全文】

阅读(1647) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册