padright

  • 詳解padright函數

    一、padright(8) padright(8)是指在一個字符串後面添加空格,直到字符串長度為8。該方法可以在表格中用於讓文本對齊。 let str = “hello”; str…

    編程 2024-11-09