Home Reference Source

Function

Static Public Summary
public

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:

NameTypeAttributeDescription
str string

str

Return:

string

public limitInRange(target: number, min: number, max: number): number source

import {limitInRange} from 'melon-split-pane/src/util.js'

将指定的数字限制在一个范围内

Params:

NameTypeAttributeDescription
target number

target

min number

min

max number

max

Return:

number