jQuery param () method
Examples
Output object serialization results:
$("button").click(function(){
$("div").text($.param(personObj));
});
$("div").text($.param(personObj));
});
try it"
Definition and Usage
param () method creates an array or object serialized representation.
Serialized values can be used when creating AJAX request URL query string.
grammar
$.param(object,trad)
参数 | 描述 |
---|---|
object | 必需。规定要序列化的数组或对象。 |
trad | 可选。布尔值,指定是否使用参数序列化的传统样式。 |