Project1
标题:
如何将事例名用变量来表示
[打印本页]
作者:
awyb3110
时间:
2012-1-7 13:35
标题:
如何将事例名用变量来表示
@text1.update
@text2.update
@text3.update
@text4.update
@text5.update
@text6.update
@text7.update
@text8.update
用循环,语法该如何? dsu_plus_rewardpost_czw
作者:
亿万星辰
时间:
2012-1-11 21:25
8.times{|i|eval("@text#{i+1}.update")}
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1