What is the format of the data passed by the ajxs request interface? The following figure

< hr >

data [XXX]: 0
what format is this?

Dec.24,2021

var data = {"data[a]":0};
console.log(data)//{data[a]: 0}

your data [xxx]: 0 is equivalent to data:1,text:1
, which is the data format agreed between you and the backend. Is the normal object format, but it is not recommended.


is passing parameters an array? If it's an array, it means you don't convert the array format. Use JSON.stringify () to convert


are you using the admin-iview framework? I have also encountered this problem, but it has been solved

Menu