| Depends on the development of the Internet technology and the increasing market demand,the ViewModel layer of traditional MVVM pattern is too bloated,because it contains a large number of business logic,interface logic and data storage logic.More and more software developers and architects pay more attention to design a pattern which is portability and has better reusability.Based on the MVVM architecture model,AOP and decoupling thought,combined with HTML technologies such as HTML5 and Bootstrap,this paper designs and implements the MVVD software architecture pattern.The MVVD architecture pattern use to reduce complex logic of the ViewModel layer as the main purpose,it subdivides the ViewModel layer into ViewController and DataController,respectively responsible for the system view logic and data logic.It reduces the module coupling between the business logic,and brings clearer code level without introducing too much complexity.The research process of MVVD mainly includes: Firstly,it analysis the demand of the improved architecture model,find out the defects of the current architecture pattern to optimize;Secondly,the MVVD is designed and implemented in detail based on the characteristics of MVVM and the idea of module decoupling.The MVVD is composed of Model,View,ViewController and DataController.This paper make a detailed design to the function of each module,the attributes and methods that required by the core class are implemented.Finally,this paper applies the MVVD software architecture pattern to the Regional Mine Economic Evaluation System,according to the test of the system business response events time and data interaction efficiency to reflect the practicality of the MVVD software architecture pattern.Through the performance test results,it can be seen that the improved software architecture pattern MVVD improves system operation efficiency and module interaction efficiency.The MVVD architecture pattern reduces the coupling between system modules,and has good testability and maintainability.It provides the basis for the design and application of software architecture pattern. |