Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能将这个转换为速度的 foreach 循环?
#set($starArray5 = []) #set($starArray4 = []) #set($starArray3 = []) #set($starArray2 = []) #set($starArray1 = [])
我试过这个,但它返回一个错误。
#foreach($i in [5..1]) #set($starArray$i = []) #end
任何帮助将不胜感激。