判断js变量是否定义,

if("undefined" == typeof myVar01)

原文地址:https://www.cnblogs.com/bj-tony/p/5555717.html