-
Notifications
You must be signed in to change notification settings - Fork 1
string
kennana edited this page Jul 14, 2023
·
1 revision
<script setup lang="ts">
import { ToolkitUseString } from "toolkit-use/dist/string/index.esm"
let str = 12
str = ToolkitUseString.padStartZero(str, 3)
</script>
参数 | 说明 | 值类型 |
---|---|---|
str | 字符串,数字 | string,number,any |
n | 补零个数 | number |