会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
jami918
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
设计模式
购物车单例模式
摘要:1 Gettype() == 0){ 39 return false; 40 } 41 if(!(array_key_exists($goods_id,$this->item))){ 42 return false; 43 }else{ 44 return $this->item[$...
阅读全文
posted @
2014-05-14 17:22
jami918
阅读(311)
评论(0)
推荐(0)
细学设计模式一(组合与继承)
摘要:1 duration = $duration;10 $this->costtype = $costtype;11 }12 13 function cost(){14 switch ($this->costtype){15 ...
阅读全文
posted @
2014-05-07 18:26
jami918
阅读(213)
评论(0)
推荐(0)
公告