Summary of three ways for Action to get request parameters

Using the second method is simple, you must ensure that the parameter is an attribute in the Model

Generally use the first and second combination, or the first and third combination, it is not recommended to directly use the third

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325252338&siteId=291194637