Commit e58068d2 by chenxin

update:增加empty fn

parent 452872a0
......@@ -105,3 +105,10 @@ export default {
return regTest.test(v);
}
};
/*
* 判断字符串是否为null,undefined,空
*/
export const isEmpty = function(v) {
return v === null || v === undefined || v === '';
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment