摘要: 1、单例模式 一个类,只能允许有一个对象存在 <?php class test{ protected function __construct(){ } public static function getInstance(){ $_test = new test(); return $_test; 阅读全文
posted @ 2020-06-09 16:45 云边一片海 阅读(21) 评论(0) 推荐(0)