针对移动应用开发中开发门槛高、周期长、成本高等问题,提出可自定义的移动中间件模型,并对中间件的整体架构进行研究与设计。中间件封装移动设备相关功能,提供交互接口,形成本地化B/S框架,开发者使用JavaScript进行简单接口调用,实现对移动设备及系统功能的调用。在中间件的页面开发代码量、加载速度和渲染性能等方面做出较好优化,有效提升页面渲染和切换速度。分别基于中间件与PhoneGap开发相同功能的原型应用,对开发效率和页面渲染性能进行测试,测试结果表明,基于该中间件开发的移动应用具有较高的渲染性能,开发难度极大降低。
To solve the problems such as high demand for developers,long development cycle and high cost in mobile application development,a mobile application development method based on custom middleware was proposed,and the research and design of middleware's architecture was carried out.Middleware encapsulated device-related functions,provided interactive interface,and formed the local B/S framework,developer could use JavaScript interface to invoke the mobile device and system function.To improve page rendering and switching speed,middleware was optimized in terms of code quantity,loading rate and rendering performance.Based on middleware and PhoneGap,two prototype applications with same functions were developed to test development efficiency and page rendering performance,results show that the mobile application based on middleware has better rendering performance and less development difficulties.