copy controller信息详情
复制控制器
copy───vi.复制;抄写;vt.复制;抄写;抄送;抄袭;效仿;收到,听见;n.副本;一册;稿件;作业本;(报纸、杂志的)题材;广告文字
droop controller───下垂控制器
traffic controller───调度员
programmable controller───[自]可编程序控制器;可编程调节器;可编程序控制器,编程控制器
registrable controller───可注册控制器
brake controller───制动控制器; 闸控制器
lighting controller───[电]灯光调节器;[电]照明控制器;照明控制器,灯光调节器
quality controller───质量控制员
management controller───管理控制员
When a controller wants to get data from the view, the view provides a copy of the model populated with the current UI contents.───当一个控制器需要从视图获取数据时,视图提供模型的一个副本,其中包含当前的UI内容。
The view can have direct contact with the model, but it also works with a copy of the model as a means of passing data to the controller.───视图可以直接与模型交互,但是它也使用模型的一个副本,以便将数据传递给控制器。
The magic is actually quite simple: Rails uses reflection to copy controller variables into a collection, which is then copied back into the view instance.───这一机制背后的原理其实很简单:Rails首先通过反射将控制器中的变量拷贝到一个容器中,其后又将该容器中的变量拷贝回视图实例。