mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(util) mv getStrBigFirst to CloudFunc
This commit is contained in:
parent
866aa0456d
commit
548bb8d7f1
3 changed files with 12 additions and 12 deletions
|
|
@ -57,6 +57,16 @@ var Util;
|
|||
return str;
|
||||
};
|
||||
|
||||
this.getStrBigFirst = function(str) {
|
||||
var isStr = Util.type.string(str),
|
||||
ret = str;
|
||||
|
||||
if (isStr && str.length)
|
||||
ret = str[0].toUpperCase() + str.substring(1);
|
||||
|
||||
return ret;
|
||||
};
|
||||
|
||||
this.formatMsg = function(msg, name, status) {
|
||||
if (!status)
|
||||
status = 'ok';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue