上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页
摘要: PHP框架接触有一段时间,主要是Kohana和Thinkphp。这两个框架各有各的特色,总体来说Kohana还是相对来说比较简单,但是国内资料较少。简单的,我把我的这个框架命名为Demo.框架搭建第一步,总体目录规划:目录 APP(应用)->TEM (主题) -> SYS (系统)||-------... 阅读全文
posted @ 2014-06-06 15:00 UCanBeFree 阅读(176) 评论(0) 推荐(0)
摘要: 接口是实现多继承的。举个例子:鸟 和 猴子鸟可以飞,猴子可以爬树还有个对象叫孙悟空 他能飞,也能爬树这中情况就用接口来实现。接口实例化对象类似于函数指针。 1 per = $per;37 }38 39 public function sname(){40 re... 阅读全文
posted @ 2014-06-05 21:20 UCanBeFree 阅读(392) 评论(0) 推荐(0)
摘要: 1 header("Content-type: application/vnd.ms-excel"); 2 header("Content-disposition: attachment; filename=$EXPORT_TIME.xls"); 3 ... 阅读全文
posted @ 2014-05-30 20:08 UCanBeFree 阅读(141) 评论(0) 推荐(0)
摘要: 先介绍下JS的正则比较方法: 比较常用的就是match方法了。 如:reg=new RegExp("\d"); //这个是用的函数reg=/\d/; //直接量写法//带参数写法reg=new RegExp("\d",g); //这个是用... 阅读全文
posted @ 2014-05-29 15:23 UCanBeFree 阅读(169) 评论(0) 推荐(0)
摘要: 分布式设计主要步骤:1,需求分析 (数据库主要需要实现的功能)2,概念设计(画E-R图,编写数据字典)(数据字典一般包括:数据项、数据结构、数据存储、数据流和数据处理 见最底端)3,逻辑设计 (设计表间关系,) 1)全局逻辑设计。 2)分布设计 3)局部逻辑设计 4,局部物理设计DEMO ... 阅读全文
posted @ 2014-05-28 17:25 UCanBeFree 阅读(464) 评论(0) 推荐(0)
摘要: man, --help 帮助查看head -n5 myfile.txt 查看大数据文件。cat gro.txt |head -n1 将cat gro.txt标准输出(stdin.stream)重定向给head的标准输入(stdout.stream)grep -i "cat" animal.txt 查... 阅读全文
posted @ 2014-05-28 15:00 UCanBeFree 阅读(118) 评论(0) 推荐(0)
摘要: JS 中的{}表示一个对象。[]表示数组。$.each()each处理数组或json对象。1 var arr1 = [ "aaa", "bbb", "ccc" ]; 2 $.each(arr1, function(i,val){ 3 alert(i); 4... 阅读全文
posted @ 2014-05-27 15:45 UCanBeFree 阅读(191) 评论(0) 推荐(0)
摘要: include 没有找到文件不会报错,只有警告,可以放在PHP文件的中间。require 没找到文件会报错,一般放到PHP文件开始的部分。两者使用起来并没有多大的区别,一般重要文件用require。 阅读全文
posted @ 2014-05-22 20:24 UCanBeFree 阅读(88) 评论(0) 推荐(0)
摘要: SELECT case 1 when 1 then "one" when 2 then "two" end;SELECT IF(1,"男","女") 阅读全文
posted @ 2014-05-21 18:02 UCanBeFree 阅读(101) 评论(0) 推荐(0)
摘要: 创建存储过程:1 delimiter //2 create procedure printname (id int,out name char(50) )3 begin4 select user into name from user where id=id;5 end6 //7 delimiter... 阅读全文
posted @ 2014-05-21 18:01 UCanBeFree 阅读(157) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页