Why can't I use a param called “action”?

前端 未结 4 1388
花落未央
花落未央 2020-12-20 15:32

Is \"action\" as a input field name forbidden? Because everything works except the assignment of the \"action\" param.

4条回答
  •  梦毁少年i
    2020-12-20 15:56

    I don't see why this would be invalid. You'd want to avoid conflicting with existing class or method names (e.g. not a good idea to define a method called action on a controller).

    everything works except the assignment of the "action" param.

    Does this generate an error? If so, what exactly?

提交回复
热议问题