没测试,有时间再改。<?php namespace Lib; use PDO; class Db { private static $connect = null; //默认连接实例 private $data = []; public static function init() { try{ $config = include(APP_ROOT.'

- 阅读全文 -