string-align:将字符串与空格对齐

时间:2021-07-13 17:44:07
【文件属性】:
文件名称:string-align:将字符串与空格对齐
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-13 17:44:07
JavaScript 字符串对齐 将字符串与空格对齐。 空白字符默认为 ascii 空格。 例子 > align ( 'foo' , 7 , 'center' ) ' foo ' > align ( 'foo' , 7 , 'left' ) 'foo ' > align ( 'foo' , 7 , 'right' ) ' foo' > align ( '-=' , 7 , 'fill' ) '-=-=-=-' > align ( 'foo' , 7 , 'center' , '_' ) '__foo__' > align ( 7 , { width : 4 , alignment : 'right' , placeholder : 0 } ) '0007' 应用程序接口 字符串对齐(字符串,宽度,[对齐],[占位符]) 字符串对齐(字符串,选项) 如果strin
【文件预览】:
string-align-master
----.npmignore(7B)
----.travis.yml(38B)
----LICENSE(1KB)
----test()
--------test.js(1KB)
----README.md(2KB)
----.gitignore(14B)
----index.js(2KB)
----package.json(761B)

网友评论