Abstract:In the Web2.0 era, more sites are using dynamic scripting approach and user interaction, a large number of client-side scripting applications, resulting in a code of adaptability, maintainability, scalability is poor, and not compatible with all major browsers, jump between pages still more, resource loading has no rules and other issues affecting the application performance and user experience. Presents a flexible framework model FWF, constructed accord AJAX + MVC pattern framework model that defines the component model, and through a policy driven and event adapter mechanism solves the problem of software adaptation. package UI components in object-oriented pattern, the implementation of model (Model), view (View) and control (Controller) are layered rationally, and through the built-in resource loading rules, shorten resource loading time, thereby enhancing the user application experience through OSGI framework's module extension mechanism to achieve a scalable Web components. In addition, through a framework prototype instance proved the flexibility and performance.