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.