mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 平台配置页面
This commit is contained in:
@@ -107,6 +107,25 @@ export function selectDictLabels(datas, value, separator) {
|
||||
return actions.join('').substring(0, actions.join('').length - 1);
|
||||
}
|
||||
|
||||
/*
|
||||
* 验证字符串是否为空(也不能为纯空格)
|
||||
* true--说明为空, false--说明不为空
|
||||
*/
|
||||
export function isEmptyString(string) {
|
||||
if (
|
||||
string == undefined ||
|
||||
typeof string == 'undefined' ||
|
||||
!string ||
|
||||
string == null ||
|
||||
string == '' ||
|
||||
/^\s+$/gi.test(string)
|
||||
) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// 字符串格式化(%s )
|
||||
export function sprintf(str) {
|
||||
var args = arguments, flag = true, i = 1;
|
||||
|
||||
Reference in New Issue
Block a user