在php.ini配置文件中修改: error_reporting=E_ALL & ~E_NOTICE & ~E_DEPRECATED 亲测有效,拿去用吧 转载于:https://www.cnblogs.com/xuzhengzong/p/6860373.html