Flex:大型项目的模块与组件
我正在计划一个包含许多功能的 Flex 项目。
每个“功能”都可以是一个组件/模块。
哪个是首选?模块和组件之间有什么区别?
谢谢
I am planning on a Flex project that involves incorporation of a lot of features.
Each 'feature' can be a component / module.
Which is preferred and what is the difference between a module and a component?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简而言之,这取决于情况。
如果您要在应用程序的常规执行期间使用全部或大部分组件,那么组件就可以了。
但从表面上看,模块可能是您项目的更好选择。
模块允许您将组件分组到外部库 (RSL) 中。这些库可以嵌入到您的应用程序中(通过项目设置),也可以在运行时动态加载(作为单独的文件)。
模块会给你带来一些好处
了解有关创建模块的更多信息此处。
The short answer is that it depends.
If you going to use all, or most, of your components during regular execution of the application - components would be alright.
By the sounds of things though, modules might be the better bet for your project.
Modules allow you to group components into external libraries (RSLs). These libraries can be embedded into your application (through project settings) or can be loaded dynamically at runtime (as separate files).
Modules would give you some benefits
Find out more about creating modules here.