매개변수 전달의 4가지 형태에 대한 자세한 설명_기본지식

WBOY
풀어 주다: 2016-05-16 15:49:40
원래의
1375명이 탐색했습니다.

이 글은 일상 업무를 요약하여 4가지 형태의 매개변수 전송을 보여줍니다.

GET을 사용하는 경우 검색, 삭제,

POST를 사용할 때 추가, 변경(특수: URL에 사용자 이름과 비밀번호를 표시할 수 없으므로 POST를 사용하여 로그인)

매개변수를 얻는 4가지 방법

<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 
 <title></title> 
 <script type="text/javascript"> 
  function Go() { 
   window.location.href="localhost:21811/Handler1.ashx&#63;id=1&name='abc'" 
  } 
 </script> 
</head> 
<body> 
로그인 후 복사


localhost:21811/Handler1.ashx?id=1&name="abc"