我将在这里进一步说明评论:
当您调用
.serializeArray()它时,它就像
<form>提交一样或尽可能接近地循环遍历,以获取要提交的元素。关键部分在这里:
.filter(function() { return this.name && !this.disabled && (this.checked || rselecttextarea.test(this.nodeName) || rinput.test(this.type));})就像
<form>提交将不包含没有
name属性的元素一样,
.filter()using
的调用
this.name将过滤掉那些要序列化的元素。



