摘要: $value) { if (!is_array($value)) { if (!get_magic_quotes_gpc()) //不对magic_quotes_gpc转义过的字... 阅读全文
posted @ 2015-09-23 16:45 Sentiger 阅读(280) 评论(0) 推荐(0)
摘要: 当控制器要继承自定义的控制器的时候,有特定的定义:application/core/MY_Controller<?phpclass MY_Controller extends CI_Controller { public function __construct() { }}但是这样就会... 阅读全文
posted @ 2015-09-23 12:01 Sentiger 阅读(264) 评论(3) 推荐(0)
摘要: create table cat( id int unsigned not null primary key auto_increment, pid int unsigned not null default 0, path varchar(200) not null defaul... 阅读全文
posted @ 2015-09-22 09:55 Sentiger 阅读(138) 评论(0) 推荐(0)
摘要: //在自定义函数中,前面加一个&符号,是对返回静态变量的引用function &test(){ static $a; $a += 1; echo $a; return $a;}//看展示$t = test(); //$t结果为:1$t = 5;$t = test(); ... 阅读全文
posted @ 2015-09-21 16:46 Sentiger 阅读(111) 评论(0) 推荐(0)
摘要: //Java中八中基本数据类型,一种引用数据类型String,记住用的是双引号 //虽然Java中,整数没有任何的修饰,默认是为int常量,浮点数没有任何修饰表示的是double类型常量 //但是下面这样直接赋值也是没有问题,因为在Java编译器编译的时候,会判断当前的常... 阅读全文
posted @ 2015-09-09 10:44 Sentiger 阅读(133) 评论(0) 推荐(0)
摘要: 为了能快速进行进制装换,需要记住一些数:2^0,2^1,2^2,2^3,2^4,2^5,2^6,2^7,2^8,2^9,2^10....1,2,4,8,16,32,64,128,256,512,1024十进制转二进制:1.将十进制拆分成上述2的次方的加法1998 = 1024+974974 = 51... 阅读全文
posted @ 2015-09-07 16:45 Sentiger 阅读(351) 评论(0) 推荐(0)
摘要: Java像C语言那样,需要编译。 C语言编译之后形成了windows可执行的.exe文件(在windows下),如果在Linux等其他操作系统运行环境下,需要重新编译。所以可以说C是不跨平台的。 Java却是在编译之后需要Java虚拟机来解释并运行,依赖于Java虚拟机,所以说Java是跨平台的... 阅读全文
posted @ 2015-08-28 22:50 Sentiger 阅读(197) 评论(0) 推荐(0)
摘要: node.js 单线程非阻塞I/O 多模块 阅读全文
posted @ 2015-08-27 22:05 Sentiger 阅读(112) 评论(0) 推荐(0)
摘要: 在写网页端,移动端网页下拉加载是一个很平常的操作,这一个比分页好看1、ajax第一次请求接口,带着参数过去。2、在接口中返回数据,比较方便处理的:{ paging: { next:"", } htmls: [ {}, {} ]}知乎是这样处理的,挺不错,以前自己的做法是传一... 阅读全文
posted @ 2015-08-27 16:15 Sentiger 阅读(289) 评论(0) 推荐(0)
摘要: 数据库代码:/*Navicat MySQL Data TransferSource Server : lonxomSource Server Version : 50524Source Host : localhost:3306Source Database : testTa... 阅读全文
posted @ 2015-08-26 17:36 Sentiger 阅读(270) 评论(0) 推荐(0)