Mixed development front end MVC frame implementation method and system

An implementation method and framework technology, applied in the computer field, can solve the problems of confusing program code management logic, difficult maintenance and reconstruction, and achieve the effects of good user experience, easy maintenance and reconstruction, and improved operating performance.

Inactive Publication Date: 2016-09-21
HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD +1
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the defects of the prior art, the purpose of the present invention is to provide a hybrid development front-end MVC framework implementation method and system to solve the problem of chaotic program code management logic and difficult maintenance and reconstruction in the existing hybrid development front-end mode

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Mixed development front end MVC frame implementation method and system
  • Mixed development front end MVC frame implementation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] Such as figure 1 As shown, the embodiment of the present invention provides a front-end MVC framework implementation method for hybrid development, including:

[0032] Step A, capturing user operations, that is to say, the presentation layer captures an action event of a page module in the user interface, and notifies the control layer of the action event;

[0033] Step B, invoking data processing, that is to say, after receiving the notification, the control layer judges whether the page module needs to obtain data from the service layer according to the action event; when the judgment is yes, determine the action event a corresponding data model, and notify the data model layer of the data model;

[0034] Step C, requesting data, that is to say, the data model layer invokes the data model to request the data from the service layer; and after receiving the data returned by the service layer, sends the data to the control layer;

[0035] Step D, the service layer ret...

Embodiment 2

[0066] Such as figure 2 As shown, the embodiment of the present invention provides a front-end MVC framework implementation system for hybrid development, including:

[0067] The presentation layer is used to capture the action event of a page module in the user interface, and notify the control layer of the action event; and is used to receive the data filled by the control layer, and display the refreshed page module on the user interface ;

[0068] The control layer is configured to judge whether the page module needs to obtain data from the service layer according to the action event after receiving the notification; if the judgment is yes, determine the data model corresponding to the action event, and store the data The model notifies the data model layer; and is used to receive the data sent by the data model layer, fill the data into the presentation layer, and refresh the page module;

[0069] The data model layer is used to call the data model to request the data ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a mixed development front end MVC frame implementation method and system, so as to solve problems that the code management logic is disordered in a conventional mixed development front end mode, and is not easy to maintain and reconfigure. The method comprises the steps that a surface layer captures an action event of a page module in a user interface, and informs a control layer of the action event; the control layer judges whether the page module needs to obtain data from a service layer according to the action event or not after the notification is received; the control layer determines the data type corresponding to the action event if the e page module needs to obtain data from the service layer, and informs a data model layer of the data model; the data model layer carries out the call of the data model, so as to request data from the service layer; the data is transmitted to the control layer after the data returned by the service layer is received; the control layer enables the data to be put in a presentation layer, and the page module is refreshed.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and system for realizing a hybrid development front-end MVC framework. Background technique [0002] With the development and popularization of smart terminals (mobile phones, tablet computers, etc.), many office, entertainment and operating software have changed from large-scale hardware computer software to terminal APP (application program, the abbreviation of Application), and the development of terminal APP is gradually changing from The single iOS or Android development model changes to a mixed development model (iOS+HTML5+Javascript or Android+HTML5+Javascript), and HTML5+Javascript development is called front-end development in the mixed development model. [0003] At present, due to the short rise time of front-end development, most developers' understanding of front-end development stays in the old model, which makes the management logic of front-end development code c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
CPCG06F8/24
Inventor 刘旭升
Owner HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products