var variable1 ="";
if (variable1 !== null || variable1 !== undefined || variable1 !== '') {
//不为空,不为null,不为""
}
Shorthand method for js to judge whether a string is empty or null and a string is empty
Guess you like
Origin blog.csdn.net/qq_41353397/article/details/111823246
Ranking