上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页
摘要: 阅读全文
posted @ 2016-09-01 10:46 骏码信息 阅读(100) 评论(0) 推荐(0) 编辑
摘要: createDB(); $db->conn(); 阅读全文
posted @ 2016-08-24 11:17 骏码信息 阅读(154) 评论(0) 推荐(0) 编辑
摘要: send=$send; } abstract public function msg($content); public function send($to,$content){ $content=$this->msg($content); $this->send->send($to,$content); ... 阅读全文
posted @ 2016-08-23 17:14 骏码信息 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 28 ,'wind'=> 7,'sun'=>'sunny'); return serialize($today); } } //增加一个适配器,转换为json格式的数据 class AdapterTianqi extends tianqi{ public static function show(){ ... 阅读全文
posted @ 2016-08-23 14:18 骏码信息 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 在phpcms中show.html 页面添加如上的js 代码实现。 阅读全文
posted @ 2016-08-23 10:56 骏码信息 阅读(1252) 评论(0) 推荐(0) 编辑
摘要: content=$content; } public function decorator(){ return $this->content; } } //摘要 class BianArt extends BaseArt{ public function __construct(BaseArt $art){ $this->art=$ar... 阅读全文
posted @ 2016-08-23 10:02 骏码信息 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 策略模式实现简单的计算器功能 阅读全文
posted @ 2016-08-19 17:33 骏码信息 阅读(178) 评论(0) 推荐(0) 编辑
摘要: power){ echo "版主删帖"; }else{ $top=new $this->top; $top->process($lev); } } } class admin{ ... 阅读全文
posted @ 2016-08-19 16:08 骏码信息 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 观察者模式属于行为模式,是定义对象间的一种一对多的依赖关系,以便当一个对象的状态发生改变时,所有依 赖于它的对象都得到通知并自动刷新。它完美的将观察者对象和被观察者对象分离。可以在独立的对象(主体)中维护一个对主体感兴趣的依赖项(观察器)列表。 让所有观察器各自实现公共的 Observer 接口,以 阅读全文
posted @ 2016-08-19 11:35 骏码信息 阅读(731) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>面向对象之观察者模式</title> </head> <style type="text/css"> .word{ width:500px; height: 1 阅读全文
posted @ 2016-08-18 16:29 骏码信息 阅读(222) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页