摘要:
基本框架图:单例代码(经常要用到):public class FlickrModelLocator implements IModelLocator{ private static var _instance:FlickrModelLocator; public function FlickrModelLocator(enforcer:ModelSingletonEnforcer) { if(enforcer==null) { throw new Error("You can only have one flickrModelLocator"); }}public static 阅读全文