数组forEach你的参数名称起错了,第一个是值,第二个才是下标
.......<input name='"+v+"' value='"+k+"' type='text'>");
可以copy一个隐藏的input;设置为不隐藏;再函数修改name属性