How to solve the key value change when the volist of TP5 is nested in the loop.

When I wrote the page today, I encountered a problem: the outer layer is a volist, and then a volist drop-down box option is nested inside. But after I found that the volist inside was written, the key values ​​of the outer layer all became 1.

Later, nesting foreach with volist is still useless. Only by using double-layer foreach and setting the key value, the outer key will not be disturbed by the key of the inner loop.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324405818&siteId=291194637