本文主要是介绍无涯教程-JavaScript - REPT函数,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
描述
REPT函数将文本重复给定的次数。使用REPT可以用多个文本字符串填充单元格。
语法
REPT (text, number_times)
争论
Argument | 描述 | Required/Optional |
---|---|---|
Text | The text you want to repeat. | Required |
Number_times | A positive number specifying the number of times to repeat text. | Required |
Notes
-
如果number_times为0(零),则REPT返回""(空文本)。
-
如果number_times不是整数,则会被截断。
-
REPT函数的输出不能超过32,767个字符,否则REPT返回#VALUE!错误值。
适用性
Excel 2007,Excel 2010,Excel 2013,Excel 2016
Example

JavaScript 中的 REPT函数 - 无涯教程网无涯教程网提供描述REPT函数将文本重复给定的次数。使用REPT可以用多个文本字符串填充单元格。 语法...https://www.learnfk.com/javascript/advanced-excel-statistical-rept-function.html
这篇关于无涯教程-JavaScript - REPT函数的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!