📅  最后修改于: 2022-03-11 15:02:39.104000             🧑  作者: Mango
if (typeof variable !== 'undefined' || typeof variable ==='undefined') {
//the variable is either defined or not defined
//in both conditions the code will be executed
}