jQuery serializeArray() add another value on top for passing to Ajax

前端 未结 5 1525
轮回少年
轮回少年 2020-12-05 17:46

I\'m doing the following:

var data = $(form).serializeArray();
// Now I want to  add another value on this data
data.username = \'this is username\';
         


        
5条回答
提交回复
热议问题