• Notice that the controller action does not take any parameters.

    注意,控制器动作不取任何参数。

    youdao

  • Assert_template 'list' : the controller action rendered the list template.

    assert _ template'list':控制器动作呈现list模板。

    youdao

  • Modify the getMsg controller action to take a string parameter and return a string value.

    修改getMsg控制器动作以获取字符串参数并返回字符串值。

    youdao

  • Represents a result that does nothing, such as a controller action method that returns nothing.

    表示一个不执行任何操作的结果,如不返回任何内容的控制器操作方法。

    youdao

  • The controller action goes in app/controllers/browsers_controller and is pretty straightforward.

    控制器操作在app/controllers/browsers_controller 中进行,并且很简单。

    youdao

  • As you can see, you first invoke the controller action as if it were a method call on the controller.

    可以看到,您首先调用控制器操作,就像它是另一个控制器上的方法一样。

    youdao

  • I prefer not to have my models automatically validated when they're passed into a controller action.

    我不喜欢在把模型传入控制器的时候总是要经过自动验证。

    youdao

  • Obtain the xml data from the builder. ( The builder uses the data from the controller action to build the xml)

    从生成器中获取xml数据.(生成器的数据来源是控制器)

    youdao

  • The model objects that are returned from an API controller action method are encoded as JSON and sent to the client.

    API控制器的动作方法所返回的模型对象被编码成JSON,并发送给客户端。

    youdao

  • Action filters are custom attributes that provide a declarative means to add pre-action and post-action behavior to controller action methods.

    动作筛选条件是自订属性,提供宣告式方法将动作前和动作后的行为加入控制器动作方法中。

    youdao

  • For each cached element, you need only specify the content you want to cache, any controller action that produces your dynamic content, and a timeout.

    对于每个被缓存的元素,只需指定想要缓存的内容、可生成动态内容的任何控制器动作以及超时。

    youdao

  • If model validation fails, this filter returns an HTTP response that contains the validation errors. In that case, the controller action is not invoked.

    如果模型验证失败,此过滤器会返回一个含有验证错误的HTTP响应。在此情况下,不会调用控制器动作。

    youdao

  • You can now type Ctrl-M, Ctrl-V within a Controller action method, or right-click within an action method and choose the "Add view" context menu item to create new view templates.

    你现在可以在一个控制器的action方法中键入Ctrl - M, Ctrl - V,或者在一个action方法中右击,选择“添加视图”上下文菜单项来生成新的视图模板。

    youdao

  • The first thing we’re going to do is create an ASP.NET MVC (Preview 4) Project. Create a new view and controller action under your Home controller and add the following line to the view.

    首先要做的就是创建一个ASP.NETMVC(Preview4)工程,在Homecontroller下面创建一个新的view和一个controller action,然后把下面几行字加到view中。

    youdao

  • Action caching lets you take advantage of authentication and any filters on the controller.

    动作缓存让您能够利用认证及控制器上的任何过滤器。

    youdao

  • Every action in a controller pairs up with a view based on the name.

    控制器中的每个动作也是根据名称与一个视图配对。

    youdao

  • Instead of creating a controller or action class, you create a page, place components on it, and define how each component reacts to user input.

    与构建控制器或动作类相反,您创建的是一个页面,在这个页面上放置组件,然后定义每个组件如何响应用户输入。

    youdao

  • This is key to your design because every view action performed by the user is sent to this controller to handle.

    这对设计非常关键,原因是用户执行的每个视图操作都被发送到该控制器进行处理。

    youdao

  • Let's consider the user controller and the login action to be tested on extreme loads.

    我们来考虑如何测试用户控制器和登录动作在极端负载下的表现。

    youdao

  • Each view controller receives the action every time the user performs an action on the view.

    每当用户在视图上执行一个操作时,每一个视图控制器就会接收到这个操作。

    youdao

  • The events triggered by any user action are intercepted by the controller.

    控制器截获任何由用户操作出发的事件;

    youdao

  • Listing 1 shows an example of a Struts Action that blurs the line between model and controller.

    清单1显示了一个StrutsAction的例子,这个例子模糊了模型层和控制器层之间的界线。

    youdao

  • Make all decisions based on the action and the context and centralize the logic in the controller.

    根据动作和上下文作出所有决定并集中控制器中的逻辑。

    youdao

  • Now URIs that begin with /blog will be redirected to the entry controller and the list action.

    现在,以 /blog开头的那些 URI 都将会被重新定向到条目控制器和列表动作。

    youdao

  • Clicking this menu option will invoke a new action in our controller named search.

    点击这个菜单项将调用控制器中名为Search的新动作。

    youdao

  • In Listing 7, you send a request from console, in two forms, to invoke the list action on the trails controller.

    在清单7中,从控制台以两种形式发送请求,调用trails控制器的list动作。

    youdao

  • Rails will actually invoke the controller before rendering the action.

    Rails 在呈现动作前会实际调用控制器。

    youdao

  • You can test this out by specifying that the products controller uses caching for the view action.

    您可以通过指定产品控制器对view操作使用缓存来测试这段代码。

    youdao

  • Finally, create an action for each controller called invalid and use the method to inform the user that their form submission was invalid.

    最后,为每个控制器创建一个称为invalid的操作,并使用这个方法通知用户提交的表单无效。

    youdao

  • Recall that the index closure is the entry point into the controller if the user doesn't specify a custom action like list or show.

    回想一下,如果用户不指定一个像list或show这样的操作的话,index闭包就是通往控制器的入口点。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定