abstract: spl_autoload_register('auto1'); spl_autoload_register('auto2'); function auto1($className){  
spl_autoload_register('auto1');
spl_autoload_register('auto2');
function auto1($className){
$file = "./21".$className.".class.php";
if(file_exists($file)){
require "./21".$className.".class.php";
}
}
function auto1($className){
$file = "./22".$className.".class.php";
if(file_exists($file)){
require "./22".$className.".class.php";
}
}
自動(dòng)加載類
Correcting teacher:天蓬老師Correction time:2019-06-24 10:36:49
Teacher's summary:這個(gè)自動(dòng)加載器, 對(duì)于有命名空間的類, 并不適合, 想一下如何修改的更加通用些