我有一些形式:
<form id="AddOrganizationForm">
<select data-val="true" data-val-required="The OrganizationRole field is required." id="Role_0_qq" name="Role[0]">
<option value="0">Value4</option>
<option value="1">Value1</option>
<option value="2">Value2</option>
<option value="3">Value3</option>
</select>
<select data-val="true" data-val-required="The OrganizationRole field is required." id="Role_0_ww" name="Role[1]">
<option value="0">Value4</option>
<option value="1">Value1</option>
<option value="2">Value2</option>
<option value="3">Value3</option>
</select>
<input name="some1" value="3" />
<input name="some2" value="5" />
</form>
当我使用时,$("#AddOrganizationForm").serializeObject()
我得到的对象是 Role[0] 和 Role[1] 只是一个单独的对象而不是一个数组。我该如何解决?