For example, to enable product editing support we can implement the HTTP-GET version of our "edit" action method on our Products controller like below and then invoke the "Add View" command.
例如,要支持产品编辑,我们可以象下面这样在Products控制器上实现“Edit”action方法的HTTP - GET版本,然后调用“添加视图”命令。
A section of code that represents a command or action. So far, the statements we have seen are assignments and print statements.
声明:一组表示一种命令或者动作的代码,目前我们了解的只有赋值语句和打印语句。
This case statement simply checks the second command-line argument, and performs the correct action, depending on its value. If we now type
这条 case 语句只是检查第二个命令行自变量,然后根据其值执行正确操作。
应用推荐