我的 html 代码是:
<input class='change_connection' name='test[connection][]' type='checkbox' value="3G">
<input class='change_connection' name='test[connection][]' type='checkbox' value="wifi">
<input class='change_platform' name='test[platform][]' value='mobile' type='checkbox'>
<input class='change_platform' name='test[platform][]' value='desktop' type='checkbox'>
<input class='change_platform' name='test[platform][]' value='tablet' type='checkbox'>
在 php 中,我用它创建了一个多维数组,如下所示:
Array
(
[connection] => Array
(
[0] => 3G
[1] => wifi
)
[platform] => Array
(
[0] => mobile
[1] => desktop
[2] => tablet
)
)
那么你能帮忙在jquery中用相同的结构做相同的数组吗?
慕勒3428872
守着星空守着你