【发布时间】:2014-08-12 18:45:35
【问题描述】:
所以我有这个作为我当前的数据:
data: $(this).serialize()
我怎样才能拥有它并添加另一个?
喜欢
data: {
$(this).serialize(),
test: 'hello'
}
【问题讨论】:
-
请在询问之前搜索 SO,即。回答上述问题stackoverflow.com/a/6539539/689579 -
data: $(this).serialize() + '&test=hello', -
Sean 的链接帮助了我。谢谢。