在创建好模型以后,访问说没有该方法,如图 看代码 class ManagerModel { //put your code here function checkDenglu($name,$pwd){ $info=$this->getByMg_name($name); show($info); } } 看代码少了继承,这种小错误,不容易发现,正确的应该为 class ManagerModel extends Model{ //put your code here function checkDe…
Angular测试遇到的小坑 Error: Expected to be running in 'ProxyZone', but it was not found 检查doneFn的写法是否正确,位置是否正确,是否定义为undefined Unhandled Promise rejection: 'expect' was used when there was no current spec - Google Search 检查donfFn或者asyn是否使用正确,如果是测试异步方法,expec…