在自定义函数中不支持for循环,但是可以用Range完成循环语句逻辑
定义:
Range range = Ranges.of(Integer start,Integer end) range.each{ }
注:最多循环500次
举例:
Range range = Ranges.of(1,5) range.each{ it -> } //返回:[1,2,3,4,5]
在自定义函数中不支持for循环,但是可以用Range完成循环语句逻辑
定义:
Range range = Ranges.of(Integer start,Integer end) range.each{ }
注:最多循环500次
举例:
Range range = Ranges.of(1,5) range.each{ it -> } //返回:[1,2,3,4,5]
现在, 就让业务连接起来 驱动业绩增长