Thoughts on the complete separation of the UI and Business Layer

Source: Internet
Author: User

When we were working on a project, in order to let the content in the front and back end be separated, we now have a pattern such as MVC for our use. However, this method does not completely separate the front and back ends,

I have an idea:

Note:

1. The business layer is similar to the JS control layer. It provides the IDs and types of various data and page elements to facilitate the JS control layer to generate different data manipulation types.Code.

2. The JS control layer is used to convert the data generated by the business layer into JS Code that manipulate the UI elements and output them. The structure of this layer is more complex, the operating methods of different elements must be considered;

3. The UI Layer is a pure UI that does not contain any background code. The UI Designer only needsProgramProvide the ID of the UI element to display the data.

 

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.