且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在客户端 MVC 中,谁应该处理客户端 - 服务器通信?

更新时间:2021-12-25 21:47:05

模型层应该与数据源交互.如果客户端-服务器设置有两个独立的三元组,则客户端模型层的数据源将是服务器的表示层.

The model layer should be interacting with data source. In case of client-server setup where you have two separate and independent triads, the data source for client's model layer would be server's presentation layer.

基本上,您客户端的模型层变成了 服务器端用户.

Basically, your client-side's model layer becomes the user of server-side.