例子记录如下:
private static $_instance;
public static function getInstance() { if (!self::$_instance instanceof self) { self::$_instance = new self; }
return self::$_instance; }
Powered by: 博客园 Copyright © 2024 bug yang Powered by .NET 8.0 on Kubernetes