Request object and Response object

1. There are four ways for the Request object to obtain and transmit data:

  • QueryString property (query string): Get the data passed through the URL path;
  • Form property (form data): Get the data transmitted by form submission;
  • ServerVariables property: Get a collection of web server variables;
  • Params attribute: The content transmitted in the above three ways can be obtained by using this attribute.

 Second, the two commonly used methods of the Response object:

  • Write method: output content directly on the page (output at the top of the page, which will be used a lot in subsequent jQuery courses);
  • Redirect method: redirect to another page (control page jump through background program)

Guess you like

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