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