Home > Mobile >  WeChat small program how to use forEach traversal after rendering the page?
WeChat small program how to use forEach traversal after rendering the page?

Time:10-09

I am small white one, a great god answer: how to set the timestamp data traversing into time, rendering the page again?

Here is js code:


The data returned:

The inside of the res. Data. The data. The openTime is converted into the timestamp of time, but I translate then I don't know how to render in

Need to traverse the render WXML:

CodePudding user response:

The assignment after the transformation of value is assigned to display field

CodePudding user response:

CodePudding user response:

refer to the second floor long mountain Sun Hong donkey reply:
you just assigned to a temporary variable in the object do not value your data structure as a written res. Data. The data. The timeY

CodePudding user response:

reference long mountain Sun Hong donkey reply: 3/f
Quote: refer to the second floor long mountain Sun Hong donkey reply:

you just assigned to a temporary variable in the object do not value your data structure as a written res. Data. The data. The timeY


You can get back the first timeY and timeH, other six does not return

CodePudding user response:

Upstairs positive solutions, you'll have no object, after traversal setData to page

Can also be provided in the MXML can introduce WXS file, interface display position actually call WXS utility class to convert can also
  • Related