1

使用livescript中的prelude.ls,当我运行时repeat 4 'a',它给了我repeat is not defined,所有其他功能都可以正常工作。在 livescript.net 上遇到同样的问题,我想我错过了一些简单的东西,它是什么?

4

1 回答 1

2

你现在必须使用Str.repeat。这可能会在未来的版本中改变。

于 2014-03-06T08:05:23.193 回答