Home > Mobile >  After an array of data obtained at the interface, how to a large number of shows in the front? How t
After an array of data obtained at the interface, how to a large number of shows in the front? How t

Time:09-29

Wx. Request access to an existing interface, received a large number of array data, how to change them setDate and displayed in the front? And click enter child pages for a certain item in the array, in addition to say again access interface, are there any other way to use again to the data obtained on a page?

CodePudding user response:

If each array data set variables respectively to set up, sometimes will inevitably have a lot of work, so it should be what method (I think of is to set up an array to accept, or use cycle, but I didn't know what to do)? Effect the diagram below, the first product data from Array [0], the second from the Array [1]... And if the points in a product page, how to call on a page of data obtained?

CodePudding user response:

Just set a variable, WXML for loop variables, then the item the. Obj traverse the attribute values, didn't know [how to invoke a page on the data obtained from the] is what meaning, according to the above example, if you need to click on the goods in the list of some commodities into the details page, two kinds of methods: if the commodity list page request has been received the goods from all of the information, can be set to global variables, and then click on the need to set up local custom a property, such as commodity id
  • Related