What kind of interface needs to pass arrays as parameters? I don’t understand. I think one of the responsibilities of the front-end is: if the interface provided by the back-end interface is unreasonable, it should be raised and appropriate adjustments should be made.
Forcibly convert the string and then convert it back, or simply use your own rules to mark the array with XX, such as ("_") splitting and splicing into strings, and then parsing according to the rules
You can directly pass the object as a parameter to the $http object
What kind of interface needs to pass arrays as parameters?
I don’t understand.
I think one of the responsibilities of the front-end is: if the interface provided by the back-end interface is unreasonable, it should be raised and appropriate adjustments should be made.
Forcibly convert the string and then convert it back, or simply use your own rules to mark the array with XX, such as ("_") splitting and splicing into strings, and then parsing according to the rules