在你的模块目录下的common.php文件中加入 error_reporting(E_ERROR | E_WARNING | E_PARSE); 转载于:https://www.cnblogs.com/niuzilong/p/11254292.html