📌  相关文章
📜  javascript 检查字符串是否为空 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:29.543000             🧑  作者: Mango

代码示例6
var string = "not empty";
if(string == ""){
  console.log("Please Add");
}
else{
  console.log("You can pass"); // console will log this msg because our string is not empty
}