這個單例模式,簡直爛的掉渣。存儲對象實例沒有設置為static,沒有考慮到clone,沒有考慮到extends,看來慕課網在走下坡路啊
2015-12-28
$db要聲明為static,不聲明為static會有這樣的語法錯誤:Access to undeclared static property
2015-12-26