单例模式
摘要:
/** * @author xiaojiang * 方式1 */ class father{ static $models = []; static public function getInstance(){ $name = get_called_class(); if( !isset( self::$models[$name] ) ){... 阅读全文
posted @ 2017-02-24 22:06 奔跑的葛根 阅读(128) 评论(0) 推荐(0)
浙公网安备 33010602011771号