Case description:
The parameter style required by the background:
goods_lists
[{
"good_id":5,"num":11},{
"good_id":9,"num":3},{
"good_id":10,"num":34}]
Follow this format to pass parameters to find
Solution
[object Object] usually occurs because the object was not properly converted when outputting it as a string. One way to avoid this problem is to use the JSON.stringify() method to convert the object to a string before passing it as an argument. For example:
var list = [{
id:1,count:11},{
id:2,count:14},{
id:3,count:56}];
console.log(JSON.stringify(list));
JSON.stringify(list) //处理一下