0👍
You’re looping through your object wrong. Try this.
$.each(data, function(key, el) {
formData.append(key, el);
});
var T = {
form: {
name: '123',
description: 'asdfasdf',
}
};
$.each(T.form, function(key, el) {
console.log(key, el);
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
- [Vuejs]-This expression is not callable for vue 2 with composition api and class component
- [Vuejs]-How to prepend scss files in Vue3 + dart-sass?
Source:stackexchange.com