摘要: /** * 属性 * childNodes 子节点 * nextSibling 下一个节点 * previousSibling 上一个节点 * parentNode 父节点 * firstChild 第一个子节点 * lastChild 最后一个子节点 * hasChildNodes 判断是否有子节... 阅读全文
posted @ 2016-12-09 09:10 龍飛鳯舞 阅读(145) 评论(0) 推荐(0) 编辑
摘要: var obj = {'a':'a'}; var fun = function (){} console.log(typeof obj);//object console.log(typeof fun);//function var a; console.log(a === undefined);//true console.log(typeof b);//true 未声明的变量使用会报错,但是... 阅读全文
posted @ 2016-11-26 23:06 龍飛鳯舞 阅读(395) 评论(0) 推荐(0) 编辑
摘要: javascript面向对象和php不太一样,语法不太相同,总结如下 阅读全文
posted @ 2016-10-19 14:48 龍飛鳯舞 阅读(127) 评论(0) 推荐(0) 编辑
摘要: cURL基本设置项 利用curl获取网络图片 阅读全文
posted @ 2016-10-10 21:25 龍飛鳯舞 阅读(7080) 评论(1) 推荐(0) 编辑
摘要: 1、万物皆对象;所有的属性和方法都隶属于window document.getElementById('id') = window.document.getElementById('id') 获取浏览器可视区域的万能方法 var w = window.innerWidth || document.d 阅读全文
posted @ 2016-08-19 11:18 龍飛鳯舞 阅读(256) 评论(0) 推荐(0) 编辑
摘要: $memcache = new Memcache; $memcache->connect('localhost',11211) or die('Could not connect'); //memcache 版本 $version = $memcache->getversion(); //php手册中的demo $tmp_object = new stdClass; $tmp_object-... 阅读全文
posted @ 2016-08-03 16:47 龍飛鳯舞 阅读(240) 评论(0) 推荐(0) 编辑
摘要: cbc // [1] => cfb // [2] => ctr // [3] => ecb // [4] => ncfb // [5] => nofb // [6] => ofb // [7] => stream // ) //当前mcrypt支持的算法 $algorithms_li... 阅读全文
posted @ 2016-08-03 11:58 龍飛鳯舞 阅读(656) 评论(0) 推荐(0) 编辑
摘要: $file->getATime(), //最后访问时间 'getBasename' => $file->getBasename(), //获取文件名 'getCTime' => $file->getCTime(), //获取inode修改时间 'getExtension' => $file->getExtension(), //文件扩展名 ... 阅读全文
posted @ 2016-07-25 13:47 龍飛鳯舞 阅读(757) 评论(0) 推荐(0) 编辑
摘要: 通过理解,php策略模式就是通过不同实例化不同的类,从而实现不同的业务逻辑。 阅读全文
posted @ 2016-07-20 14:02 龍飛鳯舞 阅读(164) 评论(0) 推荐(0) 编辑
摘要: php组合模式主要用于上下级关系,可以新增叶子和树枝,分析如下代码即可明白组合模式的含义: 显示效果如下 阅读全文
posted @ 2016-07-13 17:14 龍飛鳯舞 阅读(200) 评论(0) 推荐(0) 编辑