开始使用obj === undefined 一直返回false,发现有问题 if (typeof(obj) == "undefined"){ //do something } 仅此记录,如有问题还请指正