【发布时间】:2013-02-09 01:51:04
【问题描述】:
按照this one 之类的答案后,我正在尝试使用以下方法将数据附加到字符串:
<input type='checkbox' name='a' />A
<input type='checkbox' name='b' checked='checked'/>B
<input type='checkbox' name='c' />C
var attr_str = $('input').serializeArray();
attr_str.push({q:'hello',p:'world'});
但它返回[object Object],[object Object]。我错过了什么?
【问题讨论】:
标签: jquery arrays string serialization