Function: toUnderlineVar

toUnderlineVar(variable): string

驼峰转换下划线

Parameters

Name Type Description
variable string 需要转换的驼峰字符串

Returns

string

转换后的下划线字符串

Example

toUnderlineVar('getAccountList');
// => 'get_account_list'
ON THIS PAGE