How does FormData clear all the data in it at once?

people say release the old one and new a new one. Can you post a code for me to learn

Mar.14,2022

because formData has only append this method, so assign null to the old one, and then new the new one


var formData = new FormData();
formData.append('key', 'value');

for (var key of formData.keys()){
    formData.delete(key);
};
.
Menu