| In the information age,the way people work and live were profoundly affected and changed by network.The military camp as a self-contained "mini-society" is no exception. Due to the limitation of region, some departments、officers and men have little chance to communicate with each other. Although intranet has been widely used, some department could provide little time% opportunity、chance for officers and men to surf on the internet,because of the hard task. In view of the situation above,the mobile terminal is considered as the client of this system, so that it is convenient for soldiers to interact in their spare time,find out the advanced models around us、carry forward positive energy,and form the good atmosphere of comparison learning、catching、assisting and surpassing.There are three solutions for the currently mobile terminal programming, namely:Web App,Native App and Hybrid App.Due to a wide range of mobile terminals,you have to call in native API for each platform when developing a set of Native App code.This will increase the quality of work、the difficulty of maintaining and the cost of updating. Even though Web App can solve the problem of cross-platform development, but the browser-based Web App is unable to call the phone system itself to achieve some advanced features such as location, camera and other functions. For these two limitations,Hybrid App mode is considered as the mobile client, the local open-source and HTML5、CSS3、JavaScript supported cross-platform mobile application development framework PhoneGap and the jQuery Mobile based on jQuery library is used to write the front-end code. To implement the function of calling native API cross-platformly and ’once written, run anywhere’.At the same time the server uses the framework which consist of Node.js, Redis and SSH framework.This enhances the performance of the server and reduces the problems caused by complicating and easily realizes push technique,offline caching and real-time connections by using WebSocket protocol and Redis database. |