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