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.
我目前有一个带有一些方法名称的生成 XBase 对象:
get_0(), get_1(), get_...(),get_50()
get_0()
get_1()
get_...()
get_50()
现在我想用循环而不是 50 行来调用它们,就像这样
for(var i = 0; i <= 50; i++) { fiftyGetters.get_ + i // }
如何在 XBase/XText 中实现这一点?