-
Implements the function String padStart(Stirng stirng, int minLength,char padChar)
return a string, of length at least minLength,consisting of string prepeneded with as many copies of pdaChar as are necessary to reach that length. For example,
padStart("7",3,'0') returns "007"
padStart("2010",3,'0') returns "2010"
Parameters:
string The string which should appear at the end of the result
minLength The minumum length the resulting string must have. Can be zero or negative, in which case the input ...
阅读题目
wen_da
经典指数
-
-
-
-
-
-
-
-
-
扫描后移动端查看
相关标签
同类标签
|
微信公众号
|
|
欢迎加入,一起群聊
|