WeChat Mini Programs gets the attribute value

get the data from the background, and when you are about to bind the data, you suddenly find that the data format is like this

clipboard.png

the attribute names of data data are all numbers. After asking, I learned that it was to save the name, so I encountered a problem when I got the data. Data.10053.INDEXVALUE always takes the middle attribute value 10053 as a number. For a moment, I can"t think of a good solution. Ask for help


try data [10053] .INDEXVALUE

clipboard.png

Menu