Loader.php文件中的autoload($class) 中$class參數(shù)怎么來(lái)的
為什么Loader.php文件中的autoload($class) 中 $class會(huì)是路徑呢?? 單入口index.php調(diào)用的時(shí)候:
spl_autoload_register('\\IMooc\\Loader::autoload');
并沒(méi)有傳遞參數(shù)呀,那么$class這個(gè)參數(shù)的值怎么來(lái)的?
為什么Loader.php文件中的autoload($class) 中 $class會(huì)是路徑呢?? 單入口index.php調(diào)用的時(shí)候:
spl_autoload_register('\\IMooc\\Loader::autoload');
并沒(méi)有傳遞參數(shù)呀,那么$class這個(gè)參數(shù)的值怎么來(lái)的?
2019-08-23
舉報(bào)
2019-08-23
你這兒訪問(wèn)這個(gè)類了。