jQuery param() 메서드
예시
직렬화된 객체의 결과 출력:
$("button").click(function(){
$("div").text($.param(personObj));
});
정의 및 사용
param() 메서드는 배열 또는 객체의 직렬화된 표현을 생성합니다.
직렬화된 값은 AJAX 요청을 할 때 URL 쿼리 문자열에서 사용할 수 있습니다.
통사론
$.param(object,trad)
Parameter | Description |
---|---|
object | Required. Specifies an array or object to serialize |
trad | Optional. A Boolean value specifying whether or not to use the traditional style of param serialization |