Home > front end >  There is a js v - for the use of question
There is a js v - for the use of question

Time:09-21


The code above, you can achieve so? But I don't get any value, bosses solutions,

CodePudding user response:

Write no problem, order and output orderItem see whether have value

CodePudding user response:

So much code of writing is no problem, you need to have a clear whether you traverse the object's data structure can be like you so use

CodePudding user response:

What is your orderList and orderitems data structure? Sure have a value?

CodePudding user response:

My order is an object that orderItem is the key value object is the key order object id, output value is a list object in taichung orderItems and orderList has value

CodePudding user response:

Is your id Number or String? To determine the orderItems Key type and the type of the Order id are consistent?
  • Related