jQuery param() 方法

jQuery 教程 · 2019-03-28 14:19:04

实例

输出序列化对象的结果:

$("button").click(function(){ $("div").text($.param(personObj)); });

定义和用法

param() 方法创建数组或对象的序列化表示形式。

序列化的值可在生成 AJAX 请求时用于 URL 查询字符串中。

语法

$.param(object,trad)

参数 描述
object 必需。规定要序列化的数组或对象。
trad 可选。布尔值,指定是否使用参数序列化的传统样式。

点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html

查看所有标签

Structure and Interpretation of Computer Programs - 2nd Edition

Structure and Interpretation of Computer Programs - 2nd Edition

Harold Abelson、Gerald Jay Sussman / The MIT Press / 1996-7-25 / USD 145.56

Structure and Interpretation of Computer Programs has had a dramatic impact on computer science curricula over the past decade. This long-awaited revision contains changes throughout the text. Ther......一起来看看 《Structure and Interpretation of Computer Programs - 2nd Edition 》 这本书的介绍吧!

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具