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

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

代码示例4
if (variable === null) { //Executes only if variable is null but not undefined
  //Code here
}

if (variable == null) { //Executes if variable is null OR undefined
  //Code here
}