测试

class function TGIX4DataAccess.Instance: TGIX4DataAccess;
begin
  if not Assigned(GlobalDataAccess) then
    GlobalDataAccess := Self.Create;
  Result := GlobalDataAccess;
end;
原文地址:https://www.cnblogs.com/echomyecho/p/2586271.html