How to inspect FormData?

前端 未结 15 1501
悲&欢浪女
悲&欢浪女 2020-11-22 08:23

I\'ve tried console.log and looping through it using for in.

Here it the MDN Reference on FormData.

Both attempts are in this fi

15条回答
  •  遥遥无期
    2020-11-22 08:47

    You have to understand that FormData::entries() returns an instance of Iterator.

    Take this example form:

    and this JS-loop:

    
    

提交回复
热议问题