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://codercto.com/courses/l/35.html

查看所有标签

iGen

iGen

Jean M. Twenge PhD / Atria Books / 2017-8-22 / USD 27.00

A highly readable and entertaining first look at how today’s members of iGen—the children, teens, and young adults born in the mid-1990s and later—are vastly different from their Millennial predecesso......一起来看看 《iGen》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

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

在线 XML 格式化压缩工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具