为了在前端CGI显示代码和后端数据库及业务逻辑代码之间构建一个中间件桥,必须定义一个允许所有必需数据访问的API。
In order to build a middleware bridge between the front-end CGI display code and the back-end database and business logic code, an API that allows all necessary data access must be defined.
在前端后面是一个中间件层,我将它称作存储逻辑。
Behind the front end is a layer of middleware that I call the storage logic.
解决的办法是将前端的表示逻辑与后端的业务逻辑相分离,但是它们仍旧需要相互连接。
The solution is to separate the presentation logic of the front end from the business logic of the back end, but they still need to be connected.
应用推荐