The main difference from a usage standpoint is that you can't serialize files, only file names....the value
of a file input.
FormData
object on the other hand also includes files if applicable.
Also serialize()
will work in older browsers that don't support the FormData API for example IE < 10
reference FormData docs
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…