📜  javascript 检查变量是否存在 - Javascript 代码示例
📅  最后修改于: 2022-03-11 15:02:04.536000             🧑  作者: Mango
代码示例3
if 'myVar' in locals():
# myVar exists.
if 'myVar' in globals():
# myVar exists.