function __call($method, $args) { echo '你调用的方法不存在'; } 直接放到控制器就行 转载于:https://www.cnblogs.com/xm666/p/11429190.html