Function
Static Public Summary | ||
public |
capitalize(str: string): string Converts the first character of string to upper case and the remaining to lower case. |
|
public |
limitInRange(target: number, min: number, max: number): number 将指定的数字限制在一个范围内 |
Static Public
public capitalize(str: string): string source
import {capitalize} from 'melon-split-pane/src/util.js'
Converts the first character of string to upper case and the remaining to lower case.
Params:
Name | Type | Attribute | Description |
str | string | str |