Method and system for requesting data of MVC (model view controller) frameworks

A data request and frame technology, applied in the computer field, can solve the problems of increasing development costs, short development time of front-end development, and understanding retention, so as to avoid excessive and repeated codes

Active Publication Date: 2018-07-27
FOUNDER INT WUHAN
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, due to the short rise time of front-end development, most developers' understanding of front-end development stays in the old mode, which makes the front-end development code management logic confusing, difficult to maintain and refactor, and increases development costs, resulting in development. Application refresh efficiency and data storage performance are low, resulting in poor user experience of the application

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
  • Method and system for requesting data of MVC (model view controller) frameworks
  • Method and system for requesting data of MVC (model view controller) frameworks
  • Method and system for requesting data of MVC (model view controller) frameworks

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0031] refer to figure 1 , figure 1 A flow chart of a swift language-based MVC framework data request method provided by an embodiment of the present invention, the method comprising:

[0032] S1, constructing a request class at the model layer in the MVC framework; wherein the request class is used to encapsulate the requested data into a target format.

[0033] S2, receiving a network access request, calling the request class in the controller, and calling back the request result;

[0034] S3, when the request result is successful, display the data encapsulated into the target format in the view

[0035] Specifically, taking the acquisition of transaction records in ...

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 provides a method and a system for requesting data of MVC (model view controller) frameworks. The method includes constructing a request category in model layers in the MVC framework; receiving network access requests, calling the request category in controllers and calling back request results; displaying data, which are encapsulated into target formats, in views when the request results are successful request results. The request category is used for encapsulating the requested data into the target formats. The method and the system have the advantages that processing logic ofthe data is arranged in the model layers, the data can be quickly obtained if other controllers need to call the processing logic, and accordingly excessive and repeated codes in controller layers canbe prevented.

Description

technical field [0001] The present invention relates to the field of computer technology, and more specifically, to a data request method and system of an MVC framework. Background technique [0002] The full name of MVC is Model View Controller, which is the abbreviation of model (model)-view (view)-controller (controller). The business logic is gathered into one component, while improving and customizing the interface and user interaction, there is no need to rewrite the business logic. MVC was uniquely developed to map traditional input, processing, and output functions in a logical GUI structure. [0003] In the traditional MVC structure, after the data layer changes, it will notify the view layer to perform corresponding processing, and the view layer can directly access the data layer. But in iOS, the communication between M and V is forbidden, and the change between M and V must be coordinated by the C controller layer. [0004] At present, due to the short rise ti...

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): G06F8/34G06F8/72
CPCG06F8/34G06F8/72
Inventor 汤杰孙浩邓庆猛
Owner FOUNDER INT WUHAN
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