是否有可能在我的角度2应用程序运行时从不同的服务器加载不同的模块,如果是这样,我怎么能实现这一点?
我希望我的应用程序从隔离的服务器(A,B,C)加载整个应用程序中的不同组件,因此可以从主应用程序和A,B或C中包含的任何组件中独立地删除和更新它们.将不会被加载.底部显示的3个模块将具有组件,但主应用程序将在其中声明应加载组件的HTML.
UPDATE
通过路由延迟加载不是我想要的,3个模块应该是完全独立的模块,它们有自己的存储库,项目,托管,enz.
我可以做结帐,更新等.但是当我尝试提交更改时,SVN会给我以下错误:
无法打开文件'/ svn/p/pokemonium/code/db/txn-current-lock':权限被拒绝
我使用Windows 7 x64 SP1与最新版本的TortoiseSVN.UAC已关闭,我的帐户具有读写权限等.
我可以对其他svn存储库做好处.
我想在用户编辑时突出显示uitextfield,因此我将textfield的borderstyle默认设置为UITextBorderStyleNone,并使用uitextfields委托如下:
- (void)textFieldDidBeginEditing:(UITextField *)textField
{
[textField setBorderStyle:UITextBorderStyleBezel];
}
- (void)textFieldDidEndEditing:(UITextField *)textField
{
[textField setBorderStyle:UITextBorderStyleNone];
}
Run Code Online (Sandbox Code Playgroud)
Bezel样式被设置和渲染,但是当调用endit时,不应用none样式.我尝试将none改为另一个(比如圆形rect),但是那个确实正确渲染.
有谁知道我怎么能让这个工作?
我希望我的li分布在2行,如下所示:
item 1 item 3 item 5 item 7 item 9 ....
item 2 item 4 item 6 item 8 ......
Run Code Online (Sandbox Code Playgroud)
我的CSS真的很糟糕,所以我不知道如何实现这一点,并且找不到任何关于这个...我尝试了一些偶数和奇数项目的东西,但我无法弄清楚如何强制甚至奇数以下的项目项目.
我想使用分辨率文件解析器为我的应用程序选择正确的纹理图集,所以我用几个分辨率创建了一个RFR:
Resolution _568x1136 = new Resolution(568, 1136, ".568x1136");
Resolution _1200x1920 = new Resolution(568, 1136, ".1200x1920");
ResolutionFileResolver resolver = new ResolutionFileResolver(new InternalFileHandleResolver(), _568x1136, _1200x1920);
manager = new AssetManager();
manager.setLoader(TextureAtlas.class, new TextureAtlasLoader(resolver));
Run Code Online (Sandbox Code Playgroud)
现在我想知道,我如何命名/放置文件??????
我尝试在.png和.atlas(.png.568.1136等)之后添加.1200x1920和.568x1136,但这不起作用.
我也尝试使用文件夹(parent/568x1136/file.atlas).
我尝试以下列方式加载地图集:
manager.load("data/atlas/splashscreen/splashscreen.atlas", TextureAtlas.class); // First make sure the splash screen
manager.finishLoading(); // is loaded before loading anything
Assets.splashAtlas = manager.get("data/atlas/splashscreen/splashscreen.atlas", TextureAtlas.class); // else
Run Code Online (Sandbox Code Playgroud) android ×1
angular ×1
assets ×1
commit ×1
css ×1
html ×1
ios ×1
libgdx ×1
list ×1
resolution ×1
tortoisesvn ×1
uitextfield ×1
webpack ×1