在jquery中是否有任何等效的原型序列化() [英] Is there any equivalent in jquery for prototype serialize()

查看:55
本文介绍了在jquery中是否有任何等效的原型序列化()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将表单的数据传递给 jquery ajax request 。我找到了简单的原型 $('formid')。serialize(),它将重新获得一个字符串,其中包含所有元素名称及其在该表单中的值,为方便的ajax请求做好准备。这很容易。

I am trying to pass form's data to jquery ajax request. i find easy way for prototype $('formid').serialize() which will reqturn a string with all elements name and their value inside that form, ready for ajax request in a handy way. that's easy.

所以在jquery中是否有任何等价物?

so is there any equivalent in jquery?

推荐答案

是的它是相同的:
http://api.jquery.com/serialize

这篇关于在jquery中是否有任何等效的原型序列化()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆